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/builtin-top.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/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 31d497368ccf..42a7d96b4dbe 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -826,7 +826,7 @@ static void perf_session__mmap_read_idx(struct perf_session *self, int idx) | |||
826 | perf_event__process_sample(event, evsel, &sample, machine); | 826 | perf_event__process_sample(event, evsel, &sample, machine); |
827 | else if (event->header.type < PERF_RECORD_MAX) { | 827 | else if (event->header.type < PERF_RECORD_MAX) { |
828 | hists__inc_nr_events(&evsel->hists, event->header.type); | 828 | hists__inc_nr_events(&evsel->hists, event->header.type); |
829 | perf_event__process(&top.ops, event, &sample, machine); | 829 | perf_event__process(&top.tool, event, &sample, machine); |
830 | } else | 830 | } else |
831 | ++self->hists.stats.nr_unknown_events; | 831 | ++self->hists.stats.nr_unknown_events; |
832 | } | 832 | } |
@@ -968,11 +968,11 @@ static int __cmd_top(void) | |||
968 | goto out_delete; | 968 | goto out_delete; |
969 | 969 | ||
970 | if (top.target_tid != -1) | 970 | if (top.target_tid != -1) |
971 | perf_event__synthesize_thread_map(&top.ops, top.evlist->threads, | 971 | perf_event__synthesize_thread_map(&top.tool, top.evlist->threads, |
972 | perf_event__process, | 972 | perf_event__process, |
973 | &top.session->host_machine); | 973 | &top.session->host_machine); |
974 | else | 974 | else |
975 | perf_event__synthesize_threads(&top.ops, perf_event__process, | 975 | perf_event__synthesize_threads(&top.tool, perf_event__process, |
976 | &top.session->host_machine); | 976 | &top.session->host_machine); |
977 | start_counters(top.evlist); | 977 | start_counters(top.evlist); |
978 | top.session->evlist = top.evlist; | 978 | top.session->evlist = top.evlist; |