perf script: add --addr2line option
Similarly to other subcommands (like report, top), it would be handy to provide a path for addr2line command. Signed-off-by: Martin Liska <martin.liska@hey.com> Cc: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/eadc3e36-029d-4848-9d69-272fe5a83a26@foxlink.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
4f21bfed69
commit
e6b56ae7c2
@ -369,6 +369,9 @@ OPTIONS
|
|||||||
--demangle-kernel::
|
--demangle-kernel::
|
||||||
Demangle kernel symbol names to human readable form (for C++ kernels).
|
Demangle kernel symbol names to human readable form (for C++ kernels).
|
||||||
|
|
||||||
|
--addr2line=<path>::
|
||||||
|
Path to addr2line binary.
|
||||||
|
|
||||||
--header
|
--header
|
||||||
Show perf.data header.
|
Show perf.data header.
|
||||||
|
|
||||||
|
@ -4052,6 +4052,8 @@ int cmd_script(int argc, const char **argv)
|
|||||||
"Enable symbol demangling"),
|
"Enable symbol demangling"),
|
||||||
OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel,
|
OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel,
|
||||||
"Enable kernel symbol demangling"),
|
"Enable kernel symbol demangling"),
|
||||||
|
OPT_STRING(0, "addr2line", &symbol_conf.addr2line_path, "path",
|
||||||
|
"addr2line binary to use for line numbers"),
|
||||||
OPT_STRING(0, "time", &script.time_str, "str",
|
OPT_STRING(0, "time", &script.time_str, "str",
|
||||||
"Time span of interest (start,stop)"),
|
"Time span of interest (start,stop)"),
|
||||||
OPT_BOOLEAN(0, "inline", &symbol_conf.inline_name,
|
OPT_BOOLEAN(0, "inline", &symbol_conf.inline_name,
|
||||||
|
@ -64,7 +64,7 @@ struct symbol_conf {
|
|||||||
*sym_list_str,
|
*sym_list_str,
|
||||||
*col_width_list_str,
|
*col_width_list_str,
|
||||||
*bt_stop_list_str;
|
*bt_stop_list_str;
|
||||||
char *addr2line_path;
|
const char *addr2line_path;
|
||||||
unsigned long time_quantum;
|
unsigned long time_quantum;
|
||||||
struct strlist *dso_list,
|
struct strlist *dso_list,
|
||||||
*comm_list,
|
*comm_list,
|
||||||
|
Loading…
Reference in New Issue
Block a user