Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec5761ea authored by David Ahern's avatar David Ahern Committed by Arnaldo Carvalho de Melo
Browse files

perf symbols: Add symfs option for off-box analysis using specified tree



The symfs argument allows analysis of perf.data file using a locally accessible
filesystem tree with debug symbols - e.g., tree created during image builds,
sshfs mount, loop mounted KVM disk images, USB keys, initrds, etc. Anything
with an OS tree can be analyzed from anywhere without the need to populate a
local data store with build-ids.

Commiter notes:

o Fixed up symfs="/" variants handling.

o prefixed DSO__ORIG_GUEST_KMODULE case with symfs too, avoiding use of files
  outside the symfs directory.

LKML-Reference: <1291926427-28846-1-git-send-email-daahern@cisco.com>
Signed-off-by: default avatarDavid Ahern <daahern@cisco.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent eac23d1c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,8 @@ OPTIONS
--force::
       Don't complain, do it.

--symfs=<directory>::
        Look for files with symbols relative to this directory.

SEE ALSO
--------
+3 −0
Original line number Diff line number Diff line
@@ -116,6 +116,9 @@ OPTIONS
--force::
        Don't complain, do it.

--symfs=<directory>::
        Look for files with symbols relative to this directory.

SEE ALSO
--------
linkperf:perf-stat[1]
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ OPTIONS
--process::
        Select the processes to display, by name or PID

--symfs=<directory>::
        Look for files with symbols relative to this directory.

SEE ALSO
--------
+2 −0
Original line number Diff line number Diff line
@@ -194,6 +194,8 @@ static const struct option options[] = {
	OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator",
		   "separator for columns, no spaces will be added between "
		   "columns '.' is reserved."),
	OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory",
		    "Look for files with symbols relative to this directory"),
	OPT_END()
};

+2 −0
Original line number Diff line number Diff line
@@ -483,6 +483,8 @@ static const struct option options[] = {
		   "columns '.' is reserved."),
	OPT_BOOLEAN('U', "hide-unresolved", &hide_unresolved,
		    "Only display entries resolved to a symbol"),
	OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory",
		    "Look for files with symbols relative to this directory"),
	OPT_END()
};

Loading