Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf Documentation: Add event parameters

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.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Cody P Schafer <dev@codyps.com>
Cc: Haren Myneni <hbabu@us.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1420679633-28856-4-git-send-email-sukadev@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Cody P Schafer and committed by
Arnaldo Carvalho de Melo
98a43e0e aaea3617

+6
+6
Documentation/ABI/testing/sysfs-bus-event_source-devices-events
··· 52 52 event=0x2abc 53 53 event=0x423,inv,cmask=0x3 54 54 domain=0x1,offset=0x8,starting_index=0xffff 55 + domain=0x1,offset=0x8,core=? 55 56 56 57 Each of the assignments indicates a value to be assigned to a 57 58 particular set of bits (as defined by the format file 58 59 corresponding to the <term>) in the perf_event structure passed 59 60 to the perf_open syscall. 61 + 62 + In the case of the last example, a value replacing "?" would 63 + need to be provided by the user selecting the particular event. 64 + This is referred to as "event parameterization". Event 65 + parameters have the format 'param=?'. 60 66 61 67 What: /sys/bus/event_source/devices/<pmu>/events/<event>.unit 62 68 Date: 2014/02/24