diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 05:30:20 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:39:28 -0500 |
commit | 45694aa7702bc44d538a3bcb51bb2bb96cf190c0 (patch) | |
tree | 81bc1f449f55984556d89b63c461dcf181dc97e5 /tools/perf/util/build-id.c | |
parent | 743eb868657bdb1b26c7b24077ca21c67c82c777 (diff) |
perf tools: Rename perf_event_ops to perf_tool
To better reflect that it became the base class for all tools, that must
be in each tool struct and where common stuff will be put.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-qgpc4msetqlwr8y2k7537cxe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/build-id.c')
-rw-r--r-- | tools/perf/util/build-id.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index 2f84c4802aca..dff9c7a725f4 100644 --- a/tools/perf/util/build-id.c +++ b/tools/perf/util/build-id.c | |||
@@ -14,8 +14,9 @@ | |||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include "debug.h" | 15 | #include "debug.h" |
16 | #include "session.h" | 16 | #include "session.h" |
17 | #include "tool.h" | ||
17 | 18 | ||
18 | static int build_id__mark_dso_hit(struct perf_event_ops *ops __used, | 19 | static int build_id__mark_dso_hit(struct perf_tool *tool __used, |
19 | union perf_event *event, | 20 | union perf_event *event, |
20 | struct perf_sample *sample __used, | 21 | struct perf_sample *sample __used, |
21 | struct perf_evsel *evsel __used, | 22 | struct perf_evsel *evsel __used, |
@@ -40,7 +41,7 @@ static int build_id__mark_dso_hit(struct perf_event_ops *ops __used, | |||
40 | return 0; | 41 | return 0; |
41 | } | 42 | } |
42 | 43 | ||
43 | static int perf_event__exit_del_thread(struct perf_event_ops *ops __used, | 44 | static int perf_event__exit_del_thread(struct perf_tool *tool __used, |
44 | union perf_event *event, | 45 | union perf_event *event, |
45 | struct perf_sample *sample __used, | 46 | struct perf_sample *sample __used, |
46 | struct machine *machine) | 47 | struct machine *machine) |
@@ -59,7 +60,7 @@ static int perf_event__exit_del_thread(struct perf_event_ops *ops __used, | |||
59 | return 0; | 60 | return 0; |
60 | } | 61 | } |
61 | 62 | ||
62 | struct perf_event_ops build_id__mark_dso_hit_ops = { | 63 | struct perf_tool build_id__mark_dso_hit_ops = { |
63 | .sample = build_id__mark_dso_hit, | 64 | .sample = build_id__mark_dso_hit, |
64 | .mmap = perf_event__process_mmap, | 65 | .mmap = perf_event__process_mmap, |
65 | .fork = perf_event__process_task, | 66 | .fork = perf_event__process_task, |