perf list: Show SDT and pre-cached events
Show SDT and pre-cached events by perf-list with "sdt". This also shows the binary and build-id where the events are placed only when there are same name events on different binaries. e.g.: # perf list sdt List of pre-defined events (to be used in -e): sdt_libc:lll_futex_wake [SDT event] sdt_libc:lll_lock_wait_private [SDT event] sdt_libc:longjmp [SDT event] sdt_libc:longjmp_target [SDT event] ... sdt_libstdcxx:rethrow@/usr/bin/gcc(0cc207fc4b27) [SDT event] sdt_libstdcxx:rethrow@/usr/lib64/libstdc++.so.6.0.20(91c7a88fdf49) sdt_libstdcxx:throw@/usr/bin/gcc(0cc207fc4b27) [SDT event] sdt_libstdcxx:throw@/usr/lib64/libstdc++.so.6.0.20(91c7a88fdf49) The binary path and build-id are shown in below format; <GROUP>:<EVENT>@<PATH>(<BUILD-ID>) Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Hemant Kumar <hemant@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20160624090646.25421.44225.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
1de7b8bf72
commit
40218daea1
@@ -24,6 +24,8 @@ struct probe_cache {
|
||||
#define for_each_probe_cache_entry(entry, pcache) \
|
||||
list_for_each_entry(entry, &pcache->entries, node)
|
||||
|
||||
/* probe-file.c depends on libelf */
|
||||
#ifdef HAVE_LIBELF_SUPPORT
|
||||
int probe_file__open(int flag);
|
||||
int probe_file__open_both(int *kfd, int *ufd, int flag);
|
||||
struct strlist *probe_file__get_namelist(int fd);
|
||||
@@ -52,4 +54,11 @@ struct probe_cache_entry *probe_cache__find(struct probe_cache *pcache,
|
||||
struct probe_cache_entry *probe_cache__find_by_name(struct probe_cache *pcache,
|
||||
const char *group, const char *event);
|
||||
int probe_cache__show_all_caches(struct strfilter *filter);
|
||||
#else /* ! HAVE_LIBELF_SUPPORT */
|
||||
static inline struct probe_cache *probe_cache__new(const char *tgt __maybe_unused)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#define probe_cache__delete(pcache) do {} while (0)
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user