On Tue, 2010-11-23 at 11:45 +0200, Stephane Eranian wrote: > This patch allows specifying a per event sampling period or frequency. > Up until now, the same sampling period or frequency was applied to all > the events specified on the command line of perf record. A sampling > period depends on the event, thus it is necessary to specify it per event. > > With this patch, both the -F and -c options now take a comma separated > list of values. If a value is omitted for an event, it defaults to 1000Hz > frequency mode as before. > > $ perf record -e cycles,instructions -c 100000,200000 -a -- sleep 5
I remember an email not too long ago where people proposed to change the syntax so that: -e evnt1,evnt2 -- create a group containing both events -e evnt1 -e evnt2 -- create two separate events It would be nice to make sure these two proposals will not interfere. Alternatively we extend the event syntax to include the period, something like: -e evnt1:period=1234 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel