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>
This commit is contained in:
@@ -826,7 +826,7 @@ static void perf_session__mmap_read_idx(struct perf_session *self, int idx)
|
||||
perf_event__process_sample(event, evsel, &sample, machine);
|
||||
else if (event->header.type < PERF_RECORD_MAX) {
|
||||
hists__inc_nr_events(&evsel->hists, event->header.type);
|
||||
perf_event__process(&top.ops, event, &sample, machine);
|
||||
perf_event__process(&top.tool, event, &sample, machine);
|
||||
} else
|
||||
++self->hists.stats.nr_unknown_events;
|
||||
}
|
||||
@@ -968,11 +968,11 @@ static int __cmd_top(void)
|
||||
goto out_delete;
|
||||
|
||||
if (top.target_tid != -1)
|
||||
perf_event__synthesize_thread_map(&top.ops, top.evlist->threads,
|
||||
perf_event__synthesize_thread_map(&top.tool, top.evlist->threads,
|
||||
perf_event__process,
|
||||
&top.session->host_machine);
|
||||
else
|
||||
perf_event__synthesize_threads(&top.ops, perf_event__process,
|
||||
perf_event__synthesize_threads(&top.tool, perf_event__process,
|
||||
&top.session->host_machine);
|
||||
start_counters(top.evlist);
|
||||
top.session->evlist = top.evlist;
|
||||
|
Reference in New Issue
Block a user