From: Jan Kiszka <jan.kiszka@siemens.com>
To: Steven Rostedt <rostedt@goodmis.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] trace-cmd: Leave out absolute addresses to fix bogus symbol resolutions
Date: Tue, 15 Sep 2015 18:30:22 +0200 [thread overview]
Message-ID: <55F8479E.9030008@siemens.com> (raw)
In-Reply-To: <55BB8086.9080602@siemens.com>
On 2015-07-31 16:04, Jan Kiszka wrote:
> On x86, page_fault_* tracepoints report userspace address via kernel
> symbols because all the per-cpu variable offsets are in kallsyms,
> occupying the lower address space. Fix this by skipping over absolute
> addresses while processing kallsyms.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
> trace-util.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/trace-util.c b/trace-util.c
> index 8a81dd0..da20e4c 100644
> --- a/trace-util.c
> +++ b/trace-util.c
> @@ -434,8 +434,12 @@ void parse_proc_kallsyms(struct pevent *pevent,
> if (mod)
> mod[strlen(mod) - 1] = 0;
>
> - /* Hack for arm arch that adds a lot of bogus '$a' functions */
> - if (func[0] != '$')
> + /*
> + * Hacks for
> + * - arm arch that adds a lot of bogus '$a' functions
> + * - x86-64 that reports per-cpu variable offsets as absolute
> + */
> + if (func[0] != '$' && ch != 'A')
> pevent_register_function(pevent, func, addr, mod);
> free(func);
> free(mod);
>
Ping.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2015-09-15 16:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 14:04 Jan Kiszka
2015-09-15 16:30 ` Jan Kiszka [this message]
2015-09-15 17:00 ` Steven Rostedt
2015-09-15 17:06 ` Jan Kiszka
2015-09-15 17:17 ` Steven Rostedt
2015-09-17 18:11 ` Steven Rostedt
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=55F8479E.9030008@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.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
Powered by JetHome