From: Jiri Olsa <jolsa@redhat.com>
To: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: peterz@infradead.org, linux-kernel@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@kernel.org>,
dev@codyps.com, Paul Mackerras <paulus@samba.org>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v7 0/4] Add support for parametrized events
Date: Thu, 8 Jan 2015 10:54:34 +0100 [thread overview]
Message-ID: <20150108095434.GA16059@krava.redhat.com> (raw)
In-Reply-To: <1420679633-28856-1-git-send-email-sukadev@linux.vnet.ibm.com>
On Wed, Jan 07, 2015 at 05:13:49PM -0800, Sukadev Bhattiprolu wrote:
> Description of "event parameters" from the documentation patch:
>
> Event parameters are a basic way for partial events to be specified in
> sysfs with per-event names given to the fields that need to be filled in
> when using a particular event.
>
> It is intended for supporting cases where the single 'cpu' parameter is
> insufficient. For example, POWER 8 has events for physical
> sockets/cores/cpus that are accessible from with virtual machines. To
> keep using the single 'cpu' parameter we'd need to perform a mapping
> between Linux's cpus and the physical machine's cpus (in this case
> Linux is running under a hypervisor). This isn't possible because
> bindings between our cpus and physical cpus may not be fixed, and we
> probably won't have a "cpu" on each physical cpu.
>
> Description of the sysfs contents when events are parameterized (copied from an
> included patch):
>
> Examples:
>
> domain=0x1,offset=0x8,core=?
>
> In the case of the last example, a value replacing "?" would need
> to be provided by the user selecting the particular event. This is
> refered to as "event parameterization". All non-numerical values
> indicate an event parameter.
>
> Notes on how perf-list displays parameterized events
>
> PARAMETERIZED EVENTS
> --------------------
>
> Some pmu events listed by 'perf list' will be displayed with '$xyz' in
> them. For example:
>
> hv_24x7/HPM_THREAD_NAP_CCYC__PHYS_CORE,core=?/
>
> This means that when provided as an event, a value for ? must also
> be supplied. For example:
>
> perf stat -e \
> 'hv_24x7/HPM_THREAD_NAP_CCYC__PHYS_CORE,core=2' ...
>
> Changelog[v7]
> [Jiri Olsa] Nit: Add braces for clarity.
> [Jiri Olsa] Add a check to make sure that sysfs entries have with
> parameters exactly match '=?'.
for the patchset:
Acked-by: Jiri Olsa <jolsa@kernel.org>
thanks,
jirka
next prev parent reply other threads:[~2015-01-08 9:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 1:13 [PATCH v7 0/4] Add support for parametrized events Sukadev Bhattiprolu
2015-01-08 1:13 ` [PATCH v7 1/4] tools/perf: support parsing parameterized events Sukadev Bhattiprolu
2015-01-08 1:13 ` [PATCH v7 2/4] tools/perf: extend format_alias() to include event parameters Sukadev Bhattiprolu
2015-01-08 1:13 ` [PATCH v7 3/4] perf Documentation: add " Sukadev Bhattiprolu
2015-01-08 1:13 ` [PATCH v7 4/4] tools/perf: Document parameterized and symbolic events Sukadev Bhattiprolu
2015-01-08 9:54 ` Jiri Olsa [this message]
2015-01-12 14:18 ` [PATCH v7 0/4] Add support for parametrized events Arnaldo Carvalho de Melo
-- strict thread matches above, loose matches on Subject: below --
2015-01-27 1:43 Sukadev Bhattiprolu
2015-01-27 10:02 ` Jiri Olsa
2015-01-28 0:54 ` Michael Ellerman
2015-01-28 10:37 ` Jiri Olsa
2015-01-28 15:29 ` Arnaldo Carvalho de Melo
2015-01-29 4:24 ` Michael Ellerman
2015-01-29 4:28 ` Michael Ellerman
2015-01-30 14:52 ` Arnaldo Carvalho de Melo
2015-02-02 1:15 ` Michael Ellerman
2015-01-30 21:45 Sukadev Bhattiprolu
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=20150108095434.GA16059@krava.redhat.com \
--to=jolsa@redhat.com \
--cc=acme@kernel.org \
--cc=dev@codyps.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=sukadev@linux.vnet.ibm.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).