From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: "Wangnan (F)" <wangnan0@huawei.com>
Cc: Ingo Molnar <mingo@kernel.org>,
Alexei Starovoitov <ast@plumgrid.com>,
pi3orama <pi3orama@163.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Brendan Gregg <brendan.d.gregg@gmail.com>,
Daniel Borkmann <daniel@iogearbox.net>,
David Ahern <dsahern@gmail.com>, He Kuang <hekuang@huawei.com>,
Jiri Olsa <jolsa@redhat.com>, Kaixu Xia <xiakaixu@huawei.com>,
Madhavan Srinivasan <maddy@linux.vnet.ibm.com>,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
Michael Ellerman <mpe@ellerman.id.au>,
Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>,
Zefan Li <lizefan@huawei.com>,
Alexei Starovoitov <alexei.starovoitov@gmail.com>
Subject: Re: [GIT PULL 0/6] perf/core improvements and fixes
Date: Fri, 5 Jun 2015 10:59:20 -0300 [thread overview]
Message-ID: <20150605135920.GI32707@kernel.org> (raw)
In-Reply-To: <5571636F.1020403@huawei.com>
Em Fri, Jun 05, 2015 at 04:53:03PM +0800, Wangnan (F) escreveu:
> On 2015/6/5 14:41, Ingo Molnar wrote:
> >* Alexei Starovoitov <ast@plumgrid.com> wrote:
> >>On 6/4/15 7:04 AM, Ingo Molnar wrote:
> >In fact I'm NAK-ing the whole .o based interface until the .c interface is made
> >the _primary_ one and works well and until I see that you have thought through
> >basic usability questions...
> OK. Let's start making a nice UI.
> At this stage, what about wrapping current clang and llc workflow into perf,
> let it call them to compile '.c' scripts? This is the way 'perf annotate'
> using
> objdump. I can do this job, but firstly I'd like to know people's opinion on
Right, no need for, at a first step, to save this into a cache, or use
libraries, etc, just automate the bpf.c into bpf.o, load it and use it
as an event.
> it, and the value of the wrapper if Alexei Starovoitov's dynamic compiler
> shared object is coming.
No need to wait for that, when it comes we can use it, but Ingo
established as the door for this to be accepted is that we could use:
perf record -e foo.c usleep
Right?
> Following functions will be added:
>
> - perf searches clang and llc under current $PATH,
Good for a first step
> - Users are allowed to pass the position of those programs,
> if perf failed to find the automatically,
I would leave all this configurabilty for later, stating that it has to
be in the PATH should be ok for a first step.
> - Users are allowed to pass extra compiling options to clang and llc, like
> include directories,
For later too?
> - 'perf record' automatically calls them if a '.c' is passed using
> '--event'.
Right.
> - 'perf bpf compile' command will be added to compile a '.c' find into
> '.o',
for later? I.e. 'perf record -e foo.c usleep' could start by generating
the foo.o and not deleting it, so:
perf record -e foo.c usleep
Followed by:
perf record -e foo.o usleep
Would work, the later would be like a quick hack so that we could have
access to a pre-compiled foo.o quickly, at this introductory stage.
> Further, basic header files should be shipped with kernel headers.
>
> User interface update:
>
> - --llc, --clang, --llc-opt and --clang-opt option will be added to 'perf
> record'
> to indicate the position and extra options to them. Ideally they can be
> leave
> blank.
Couldn't this be left to a section in a .perfconfig file to avoid having
so many command line options? We could have one of those files per
"project", after we add a --config option to 'perf record', to override
whatever it finds in the config file search it already does, i.e.:
[clang]
path = /a/b/clang
opt = -a -b -c -d
[llc]
path = /d/e/llc
opt = -r -t -y -u
But even this can be left for a second step.
> - 'perf bpf compile' will be added.
> One problem I can find is that, the wrapper will make perf depend on
> llvm. I don't think the compiler will be deployed in production
> environments... And also, the embedded case...
Well, we can always build a subset of perf, using the command line
options to disable certain features.
- Arnaldo
next prev parent reply other threads:[~2015-06-05 14:27 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 22:40 [GIT PULL 0/6] perf/core improvements and fixes Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 1/6] perf probe: Fix segfault when glob matching function without debuginfo Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 2/6] perf tools: Remove newline char when reading event scale and unit Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 3/6] perf machine: Fix the search for the kernel DSO on the unified list Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 4/6] perf tools: Move linux/kernel.h to tools/include Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 5/6] tools: Move tools/perf/util/include/linux/{list.h,poison.h} " Arnaldo Carvalho de Melo
2015-06-03 22:40 ` [PATCH 6/6] perf tools: Deal with kernel module names in '[]' correctly Arnaldo Carvalho de Melo
2015-06-04 5:48 ` [GIT PULL 0/6] perf/core improvements and fixes Ingo Molnar
2015-06-04 6:07 ` Wangnan (F)
2015-06-04 7:21 ` Ingo Molnar
2015-06-04 10:00 ` Wangnan (F)
2015-06-04 12:40 ` Ingo Molnar
2015-06-04 12:58 ` pi3orama
2015-06-04 14:04 ` Ingo Molnar
2015-06-04 16:22 ` Alexei Starovoitov
2015-06-04 21:48 ` Masami Hiramatsu
2015-06-04 22:07 ` Alexei Starovoitov
2015-06-05 6:41 ` Ingo Molnar
2015-06-05 8:53 ` Wangnan (F)
2015-06-05 12:05 ` Ingo Molnar
2015-06-05 14:06 ` Arnaldo Carvalho de Melo
2015-06-07 13:11 ` Ingo Molnar
2015-06-05 13:59 ` Arnaldo Carvalho de Melo [this message]
2015-06-04 10:17 ` [EXPERIENCE] My experience on using perf record BPF filter on a real usecase Wangnan (F)
2015-06-10 6:42 ` Alexei Starovoitov
2015-06-10 6:48 ` Wangnan (F)
-- strict thread matches above, loose matches on Subject: below --
2017-03-16 16:09 [GIT PULL 0/6] perf/core improvements and fixes Arnaldo Carvalho de Melo
2017-03-16 16:30 ` Ingo Molnar
2015-08-31 21:36 Arnaldo Carvalho de Melo
2015-09-01 8:26 ` Ingo Molnar
2015-03-31 20:59 Arnaldo Carvalho de Melo
2015-04-01 7:56 ` Ingo Molnar
2015-03-26 15:40 Arnaldo Carvalho de Melo
2015-03-27 7:37 ` Ingo Molnar
2014-05-12 9:27 Jiri Olsa
2014-05-12 15:59 ` Ingo Molnar
2014-04-30 10:11 Jiri Olsa
2014-05-01 6:26 ` Ingo Molnar
2012-10-31 14:48 Arnaldo Carvalho de Melo
2011-04-20 16:23 Arnaldo Carvalho de Melo
2011-04-21 8:58 ` Ingo Molnar
2011-02-16 22:54 Arnaldo Carvalho de Melo
2011-02-17 13:50 ` Ingo Molnar
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=20150605135920.GI32707@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexei.starovoitov@gmail.com \
--cc=ast@plumgrid.com \
--cc=brendan.d.gregg@gmail.com \
--cc=daniel@iogearbox.net \
--cc=dsahern@gmail.com \
--cc=hekuang@huawei.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=maddy@linux.vnet.ibm.com \
--cc=masami.hiramatsu.pt@hitachi.com \
--cc=mingo@kernel.org \
--cc=mpe@ellerman.id.au \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=pi3orama@163.com \
--cc=sukadev@linux.vnet.ibm.com \
--cc=wangnan0@huawei.com \
--cc=xiakaixu@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.