diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-03-15 15:09:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-03-16 13:06:06 -0400 |
commit | 641cc938815dfd09f8fa1ec72deb814f0938ac33 (patch) | |
tree | 8ced57a6b2d427bd34dcc30d3aebba3e0af45bb3 /Documentation | |
parent | 4a3d2d9bfb3b594b6e1f2b7eabfaf4e820a18c0e (diff) |
perf: Adding sysfs group format attribute for pmu device
Adding sysfs group 'format' attribute for pmu device that
contains a syntax description on how to construct raw events.
The event configuration is described in following
struct pefr_event_attr attributes:
config
config1
config2
Each sysfs attribute within the format attribute group,
describes mapping of name and bitfield definition within
one of above attributes.
eg:
"/sys/...<dev>/format/event" contains "config:0-7"
"/sys/...<dev>/format/umask" contains "config:8-15"
"/sys/...<dev>/format/usr" contains "config:16"
the attribute value syntax is:
line: config ':' bits
config: 'config' | 'config1' | 'config2"
bits: bits ',' bit_term | bit_term
bit_term: VALUE '-' VALUE | VALUE
Adding format attribute definitions for x86 cpu pmus.
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/n/tip-vhdk5y2hyype9j63prymty36@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-bus-event_source-devices-format | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-format b/Documentation/ABI/testing/sysfs-bus-event_source-devices-format new file mode 100644 index 000000000000..079afc71363d --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-format | |||
@@ -0,0 +1,14 @@ | |||
1 | Where: /sys/bus/event_source/devices/<dev>/format | ||
2 | Date: January 2012 | ||
3 | Kernel Version: 3.3 | ||
4 | Contact: Jiri Olsa <jolsa@redhat.com> | ||
5 | Description: | ||
6 | Attribute group to describe the magic bits that go into | ||
7 | perf_event_attr::config[012] for a particular pmu. | ||
8 | Each attribute of this group defines the 'hardware' bitmask | ||
9 | we want to export, so that userspace can deal with sane | ||
10 | name/value pairs. | ||
11 | |||
12 | Example: 'config1:1,6-10,44' | ||
13 | Defines contents of attribute that occupies bits 1,6-10,44 of | ||
14 | perf_event_attr::config1. | ||