From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: "Wangnan (F)" <wangnan0@huawei.com>
Cc: "平松雅巳 / HIRAMATU,MASAMI" <masami.hiramatsu.pt@hitachi.com>,
"mingo@redhat.com" <mingo@redhat.com>,
"namhyung@kernel.org" <namhyung@kernel.org>,
"pi3orama@163.com" <pi3orama@163.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] perf probe: Support probing at absolute address
Date: Wed, 26 Aug 2015 10:32:35 -0300 [thread overview]
Message-ID: <20150826133235.GA18596@kernel.org> (raw)
In-Reply-To: <55DDBCDF.8050607@huawei.com>
Em Wed, Aug 26, 2015 at 09:19:27PM +0800, Wangnan (F) escreveu:
> On 2015/8/26 21:02, acme@kernel.org wrote:
> >Em Wed, Aug 26, 2015 at 10:38:18AM +0800, Wangnan (F) escreveu:
> >>On 2015/8/26 8:02, 平松雅巳 / HIRAMATU,MASAMI wrote:
> >>>>From: Wang Nan [mailto:wangnan0@huawei.com]
> >>>> # perf probe /lib/x86_64-linux-gnu/libc-2.19.so +0xeb860
> >>>Why do we need "+" for the absolute address?
> >>>It seems that we can do it if we find that the given probe point
> >>>starts with "0x".
> >>I will change 2/2 as you suggestion.
> >>However, we can only ensure that in kernel side symbol never leading
> >>with '0x'. Although I don't think symbol leading with 0x is useful,
> >>it is still possible for a userspace program compiled and linked by
> >>a language other than C produces such symbol. '+' helps us separate
> >>address and function name semantically, make us don't rely on assumption
> >>on function names. If in future we do meet '0x' symbols, I think we still
> >>need the '+' syntax back. But we can do it at that time.
> >Agreed, I also think that using '+' is better, but will not dwell on
> >this so as to make progress :-)
> Maybe we should support both of them, making '+0x1234' the core
> syntax, and '0x1234' style as a syntax sugar. However I have worked
> on this problem for nearly a full day but my main work should be BPF
> related things...
> Since Masami has acked all of the 6 v3 patches, if we still need '+' I can
> bring it back with a new patch when I have time. However, same to you,
> I don't think this should be a blocking problem.
Agreed, we don't have to agree on everything all the time, lets keep
Masami happy this time :-)
- Arnaldo
next prev parent reply other threads:[~2015-08-26 13:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-25 13:27 [PATCH 1/2] perf probe: Prevent segfault when reading probe point with absolute address Wang Nan
2015-08-25 13:27 ` [PATCH 2/2] perf probe: Support probing at " Wang Nan
2015-08-26 0:02 ` 平松雅巳 / HIRAMATU,MASAMI
2015-08-26 2:38 ` Wangnan (F)
2015-08-26 9:02 ` 平松雅巳 / HIRAMATU,MASAMI
2015-08-26 13:02 ` acme
2015-08-26 13:19 ` Wangnan (F)
2015-08-26 13:32 ` Arnaldo Carvalho de Melo [this message]
2015-08-26 13:00 ` acme
2015-08-25 15:32 ` [PATCH 1/2] perf probe: Prevent segfault when reading probe point with " Arnaldo Carvalho de Melo
2015-08-26 0:08 ` 平松雅巳 / HIRAMATU,MASAMI
2015-08-28 6:40 ` [tip:perf/core] " tip-bot for Wang Nan
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=20150826133235.GA18596@kernel.org \
--to=acme@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=pi3orama@163.com \
--cc=wangnan0@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.