From: Michael Petlan <mpetlan@redhat.com>
To: "linux-perf-users@vger.kernel.org" <linux-perf-users@vger.kernel.org>
Subject: [PATCH] perf annotate: Support of full source file paths for srcline fix
Date: Mon, 09 Nov 2015 16:33:31 +0100 [thread overview]
Message-ID: <1447083211.15375.57.camel@Rudolf-RHEL-7> (raw)
The --full-paths option did not show the full source file paths
in the perf annotate tool, because the value of the option was
not propagated into the related functions.
With this patch the value of the --full-paths option is known to
the function that composes the srcline string, so it prints the
full path when necessary.
Signed-off-by: Michael Petlan <mpetlan@redhat.com>
---
tools/perf/util/annotate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 0fc8d7a..cbf0fdb 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -1604,6 +1604,7 @@ int symbol__tty_annotate(struct symbol *sym, struct map *map,
len = symbol__size(sym);
if (print_lines) {
+ srcline_full_filename = full_paths;
symbol__get_source_line(sym, map, evsel, &source_line, len);
print_summary(&source_line, dso->long_name);
}
--
1.8.3.1
next reply other threads:[~2015-11-09 15:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-09 15:33 Michael Petlan [this message]
2015-11-09 19:39 ` [PATCH] perf annotate: Support of full source file paths for srcline fix Arnaldo Carvalho de Melo
-- strict thread matches above, loose matches on Subject: below --
2015-11-09 15:33 Michael Petlan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447083211.15375.57.camel@Rudolf-RHEL-7 \
--to=mpetlan@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox