diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-22 18:01:31 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-23 08:55:37 -0400 |
commit | c824c4338ac47979c69ba6f8faab33670ae179df (patch) | |
tree | 909cc9e0aa8d40aebb0a9255ebd816d3a83b8812 /tools/perf/builtin-report.c | |
parent | 4ac2f1c1014a121f1493a9d5207258793c576438 (diff) |
perf tools: Stop using 'self' in some more places
As suggested by tglx, 'self' should be replaced by something that is
more useful.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.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-fmblhc6tbb99tk1q8vowtsbj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 81addcabb356..e3598a456017 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -373,9 +373,9 @@ static int process_read_event(struct perf_tool *tool, | |||
373 | /* For pipe mode, sample_type is not currently set */ | 373 | /* For pipe mode, sample_type is not currently set */ |
374 | static int perf_report__setup_sample_type(struct perf_report *rep) | 374 | static int perf_report__setup_sample_type(struct perf_report *rep) |
375 | { | 375 | { |
376 | struct perf_session *self = rep->session; | 376 | struct perf_session *session = rep->session; |
377 | u64 sample_type = perf_evlist__combined_sample_type(self->evlist); | 377 | u64 sample_type = perf_evlist__combined_sample_type(session->evlist); |
378 | bool is_pipe = perf_data_file__is_pipe(self->file); | 378 | bool is_pipe = perf_data_file__is_pipe(session->file); |
379 | 379 | ||
380 | if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { | 380 | if (!is_pipe && !(sample_type & PERF_SAMPLE_CALLCHAIN)) { |
381 | if (sort__has_parent) { | 381 | if (sort__has_parent) { |
@@ -417,14 +417,14 @@ static void sig_handler(int sig __maybe_unused) | |||
417 | } | 417 | } |
418 | 418 | ||
419 | static size_t hists__fprintf_nr_sample_events(struct perf_report *rep, | 419 | static size_t hists__fprintf_nr_sample_events(struct perf_report *rep, |
420 | struct hists *self, | 420 | struct hists *hists, |
421 | const char *evname, FILE *fp) | 421 | const char *evname, FILE *fp) |
422 | { | 422 | { |
423 | size_t ret; | 423 | size_t ret; |
424 | char unit; | 424 | char unit; |
425 | unsigned long nr_samples = self->stats.nr_events[PERF_RECORD_SAMPLE]; | 425 | unsigned long nr_samples = hists->stats.nr_events[PERF_RECORD_SAMPLE]; |
426 | u64 nr_events = self->stats.total_period; | 426 | u64 nr_events = hists->stats.total_period; |
427 | struct perf_evsel *evsel = hists_to_evsel(self); | 427 | struct perf_evsel *evsel = hists_to_evsel(hists); |
428 | char buf[512]; | 428 | char buf[512]; |
429 | size_t size = sizeof(buf); | 429 | size_t size = sizeof(buf); |
430 | 430 | ||