From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Wang Nan <wangnan0@huawei.com>
Cc: Milian Wolff <milian.wolff@kdab.com>,
Jiri Olsa <jolsa@redhat.com>,
Andreas Hollmann <hollmann@in.tum.de>,
Jiri Olsa <jolsa@kernel.org>,
linux-perf-users@vger.kernel.org
Subject: eBPF counters for 'perf stat' e.g.: Re: User defined metrics for perf stat?
Date: Wed, 3 Feb 2016 11:18:18 -0300 [thread overview]
Message-ID: <20160203141818.GA8193@kernel.org> (raw)
In-Reply-To: <20160203141157.GB31974@krava.brq.redhat.com>
Em Wed, Feb 03, 2016 at 03:11:57PM +0100, Jiri Olsa escreveu:
> On Wed, Feb 03, 2016 at 01:39:20PM +0100, Milian Wolff wrote:
> > How does this compare to the ongoing eBPF effort? Will we be able to do eBPF
> > based in-kernel aggregation for perf stat in the future?
> hum, not sure what you mean by that, however this is
> all user level scripting support to allow user defined
> metrics/ratios from perf counters, more info ine here:
> http://marc.info/?l=linux-kernel&m=145207742329050&w=2
I would have to check, Wang may help here, but perf has been getting
more and more integrated with the eBPF facilities in place in the
kernel.
To the point that yeah, I think that loading a C program that would hook
somewhere in the kernel and would then create a counter that could be
named and used with perf stat is something I think should even already
be possible if you use what is in Wang's tree, being reviewed to get
upstream, Wang?
- Arnaldo
next prev parent reply other threads:[~2016-02-03 14:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-31 16:53 User defined metrics for perf stat? Andreas Hollmann
2016-02-01 17:15 ` Arnaldo Carvalho de Melo
2016-02-01 17:27 ` Jiri Olsa
2016-02-01 23:33 ` Andreas Hollmann
2016-02-02 8:58 ` Jiri Olsa
2016-02-02 9:42 ` Andreas Hollmann
2016-02-02 16:24 ` Andreas Hollmann
2016-02-03 7:48 ` Jiri Olsa
2016-02-03 11:43 ` Andreas Hollmann
2016-02-03 14:09 ` Jiri Olsa
2016-02-03 15:25 ` Andreas Hollmann
2016-02-05 14:12 ` Andreas Hollmann
2016-02-06 21:54 ` Jiri Olsa
2016-02-03 12:39 ` Milian Wolff
2016-02-03 14:11 ` Jiri Olsa
2016-02-03 14:18 ` Arnaldo Carvalho de Melo [this message]
2016-02-04 9:46 ` eBPF counters for 'perf stat' e.g.: " Wangnan (F)
2016-02-03 14:43 ` Milian Wolff
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=20160203141818.GA8193@kernel.org \
--to=acme@kernel.org \
--cc=hollmann@in.tum.de \
--cc=jolsa@kernel.org \
--cc=jolsa@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=milian.wolff@kdab.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).