summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/probe-file.h
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2016-07-12 12:05:04 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-14 04:09:06 +0200
commit05bf2c8a2a819132b4a8f35d4315ff22e8e84a20 (patch)
tree3c7321e4c1125597e8a57c166ed5bf5c0a0b5f54 /tools/perf/util/probe-file.h
parentperf probe: Make --list show only available cached events (diff)
downloadlinux-05bf2c8a2a819132b4a8f35d4315ff22e8e84a20.tar.xz
linux-05bf2c8a2a819132b4a8f35d4315ff22e8e84a20.zip
perf probe-cache: Add for_each_probe_cache_entry() wrapper
Add for_each_probe_cache_entry() wrapper macro for hiding list in probe_cache. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> 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/146831790386.17065.15082256697569419710.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-file.h')
-rw-r--r--tools/perf/util/probe-file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/probe-file.h b/tools/perf/util/probe-file.h
index ddf5ae212c2f..d513b346a70e 100644
--- a/tools/perf/util/probe-file.h
+++ b/tools/perf/util/probe-file.h
@@ -21,6 +21,8 @@ struct probe_cache {
#define PF_FL_UPROBE 1
#define PF_FL_RW 2
+#define for_each_probe_cache_entry(entry, pcache) \
+ list_for_each_entry(entry, &pcache->entries, node)
int probe_file__open(int flag);
int probe_file__open_both(int *kfd, int *ufd, int flag);