linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf event attrributes
@ 2013-03-27 15:40 Freehill Christopher-RAT063
  2013-03-28  1:32 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Freehill Christopher-RAT063 @ 2013-03-27 15:40 UTC (permalink / raw)
  To: linux-perf-users

Hi,

I am working on adding support in perf for many events for a particular architecture.  As it is, there are thousands of events to add, with potentially many more. 

Instead of treating each event as a separate raw event number (e.g., "perf stat -e rXXXXX ."), I wondering if there is any existing support in the perf infrastructure to support event attributes? For example, if I have an event that represents "DDR hits", meaning all accesses to DDR, and I want to add support for DDR hits from a particular source, do I need to add a perf event for every possible source (e.g., "DDR access from source A", "DDR access from source B", .), or is  there a way to specify attributes for the event, in order to keep the number of events to a reasonable level, and also make it easier for the user? Something like "perf stat -e rXXXXX -source A"

The "Source"  is one example of an attribute. There are several others. If you wanted to add support for all of those variations without using some kind of attribute, the number of events would be difficult to implement in a "flat" way, due to the huge number of events required. Also, it seems not very useable. 

On the perf wiki, I see mention of "sub-events" and "unit masks", which could be applicable, but I cannot find any other info or examples on them, or see the related kernel code. I would like to use a kernel module to extend this, if possible.

Also, potentially related are modifiers (but it looks like those may not be something I could extend). I'm not sure.

Any info or suggestions are appreciated.

Thanks,
Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-03 22:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27 15:40 perf event attrributes Freehill Christopher-RAT063
2013-03-28  1:32 ` Andi Kleen
2013-04-01 16:09   ` Freehill Christopher-RAT063
2013-04-02  4:42     ` Namhyung Kim
2013-04-03 22:26       ` Freehill Christopher-RAT063

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).