aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-04-12 14:16:15 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-04-13 09:11:52 -0400
commite20ab86e51218f9949f41fb39a6c4f63b662f135 (patch)
tree4cad61b420c17ab788c6a34834306d484a0bd410 /tools/perf/builtin-script.c
parent73643bb6a21c85509c7ae4c316f502c5a19cce65 (diff)
perf evsel: Move some methods from session.[ch] to evsel.[ch]
Those were converted to be evsel methods long ago, move the source to where it belongs. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-vja8rjmkw3gd5ungaeyb5s2j@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r--tools/perf/builtin-script.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c
index ddd5b79e94c2..838c0bc38105 100644
--- a/tools/perf/builtin-script.c
+++ b/tools/perf/builtin-script.c
@@ -317,19 +317,19 @@ static void set_print_ip_opts(struct perf_event_attr *attr)
317 317
318 output[type].print_ip_opts = 0; 318 output[type].print_ip_opts = 0;
319 if (PRINT_FIELD(IP)) 319 if (PRINT_FIELD(IP))
320 output[type].print_ip_opts |= PRINT_IP_OPT_IP; 320 output[type].print_ip_opts |= EVSEL__PRINT_IP;
321 321
322 if (PRINT_FIELD(SYM)) 322 if (PRINT_FIELD(SYM))
323 output[type].print_ip_opts |= PRINT_IP_OPT_SYM; 323 output[type].print_ip_opts |= EVSEL__PRINT_SYM;
324 324
325 if (PRINT_FIELD(DSO)) 325 if (PRINT_FIELD(DSO))
326 output[type].print_ip_opts |= PRINT_IP_OPT_DSO; 326 output[type].print_ip_opts |= EVSEL__PRINT_DSO;
327 327
328 if (PRINT_FIELD(SYMOFFSET)) 328 if (PRINT_FIELD(SYMOFFSET))
329 output[type].print_ip_opts |= PRINT_IP_OPT_SYMOFFSET; 329 output[type].print_ip_opts |= EVSEL__PRINT_SYMOFFSET;
330 330
331 if (PRINT_FIELD(SRCLINE)) 331 if (PRINT_FIELD(SRCLINE))
332 output[type].print_ip_opts |= PRINT_IP_OPT_SRCLINE; 332 output[type].print_ip_opts |= EVSEL__PRINT_SRCLINE;
333} 333}
334 334
335/* 335/*
@@ -574,9 +574,9 @@ static void print_sample_bts(struct perf_sample *sample,
574 printf("\n"); 574 printf("\n");
575 } else { 575 } else {
576 printf(" "); 576 printf(" ");
577 if (print_opts & PRINT_IP_OPT_SRCLINE) { 577 if (print_opts & EVSEL__PRINT_SRCLINE) {
578 print_srcline_last = true; 578 print_srcline_last = true;
579 print_opts &= ~PRINT_IP_OPT_SRCLINE; 579 print_opts &= ~EVSEL__PRINT_SRCLINE;
580 } 580 }
581 } 581 }
582 perf_evsel__fprintf_sym(evsel, sample, al, 0, print_opts, 582 perf_evsel__fprintf_sym(evsel, sample, al, 0, print_opts,