diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-11 09:53:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-11 21:18:15 -0400 |
commit | db3617f362d7e205621c1ccc22b77d224a81ee14 (patch) | |
tree | 6633853b60e1a2143478dd59baea4f2c00bfe1e0 /tools/perf/builtin-script.c | |
parent | 6186de9a491af030889b372193fc9f38c248e69a (diff) |
perf evsel: Allow passing a left alignment when printing a symbol
For callchains, etc where we want it to align just below the syscall
name, for instance, in 'perf trace'
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-uk9ekchd67651c625ltaur5y@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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index dbf208f0cdc2..60fde9f5025c 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -579,7 +579,7 @@ static void print_sample_bts(struct perf_sample *sample, | |||
579 | print_opts &= ~PRINT_IP_OPT_SRCLINE; | 579 | print_opts &= ~PRINT_IP_OPT_SRCLINE; |
580 | } | 580 | } |
581 | } | 581 | } |
582 | perf_evsel__print_ip(evsel, sample, al, print_opts, | 582 | perf_evsel__print_ip(evsel, sample, al, 0, print_opts, |
583 | scripting_max_stack, stdout); | 583 | scripting_max_stack, stdout); |
584 | } | 584 | } |
585 | 585 | ||
@@ -788,7 +788,7 @@ static void process_event(struct perf_script *script, | |||
788 | else | 788 | else |
789 | printf("\n"); | 789 | printf("\n"); |
790 | 790 | ||
791 | perf_evsel__print_ip(evsel, sample, al, | 791 | perf_evsel__print_ip(evsel, sample, al, 0, |
792 | output[attr->type].print_ip_opts, | 792 | output[attr->type].print_ip_opts, |
793 | scripting_max_stack, stdout); | 793 | scripting_max_stack, stdout); |
794 | } | 794 | } |