Commit e6b56ae7 authored by Martin Liška's avatar Martin Liška Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarMartin 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4f21bfed
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -369,6 +369,9 @@ OPTIONS
--demangle-kernel::
	Demangle kernel symbol names to human readable form (for C++ kernels).

--addr2line=<path>::
	Path to addr2line binary.

--header
	Show perf.data header.

+2 −0
Original line number Diff line number Diff line
@@ -4052,6 +4052,8 @@ int cmd_script(int argc, const char **argv)
			"Enable symbol demangling"),
	OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel,
			"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",
		   "Time span of interest (start,stop)"),
	OPT_BOOLEAN(0, "inline", &symbol_conf.inline_name,
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ struct symbol_conf {
			*sym_list_str,
			*col_width_list_str,
			*bt_stop_list_str;
	char		*addr2line_path;
	const char		*addr2line_path;
	unsigned long	time_quantum;
       struct strlist	*dso_list,
			*comm_list,