mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
6186de9a49
commit
db3617f362
3 changed files with 8 additions and 4 deletions
|
@ -579,7 +579,7 @@ static void print_sample_bts(struct perf_sample *sample,
|
|||
print_opts &= ~PRINT_IP_OPT_SRCLINE;
|
||||
}
|
||||
}
|
||||
perf_evsel__print_ip(evsel, sample, al, print_opts,
|
||||
perf_evsel__print_ip(evsel, sample, al, 0, print_opts,
|
||||
scripting_max_stack, stdout);
|
||||
}
|
||||
|
||||
|
@ -788,7 +788,7 @@ static void process_event(struct perf_script *script,
|
|||
else
|
||||
printf("\n");
|
||||
|
||||
perf_evsel__print_ip(evsel, sample, al,
|
||||
perf_evsel__print_ip(evsel, sample, al, 0,
|
||||
output[attr->type].print_ip_opts,
|
||||
scripting_max_stack, stdout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue