~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-bus-event_source-devices-events

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-bus-event_source-devices-events (Architecture ppc) and /Documentation/ABI/testing/sysfs-bus-event_source-devices-events (Architecture mips)


  1 What:           /sys/devices/cpu/events/            1 What:           /sys/devices/cpu/events/
  2                 /sys/devices/cpu/events/branch      2                 /sys/devices/cpu/events/branch-misses
  3                 /sys/devices/cpu/events/cache-      3                 /sys/devices/cpu/events/cache-references
  4                 /sys/devices/cpu/events/cache-      4                 /sys/devices/cpu/events/cache-misses
  5                 /sys/devices/cpu/events/stalle      5                 /sys/devices/cpu/events/stalled-cycles-frontend
  6                 /sys/devices/cpu/events/branch      6                 /sys/devices/cpu/events/branch-instructions
  7                 /sys/devices/cpu/events/stalle      7                 /sys/devices/cpu/events/stalled-cycles-backend
  8                 /sys/devices/cpu/events/instru      8                 /sys/devices/cpu/events/instructions
  9                 /sys/devices/cpu/events/cpu-cy      9                 /sys/devices/cpu/events/cpu-cycles
 10                                                    10 
 11 Date:           2013/01/08                         11 Date:           2013/01/08
 12                                                    12 
 13 Contact:        Linux kernel mailing list <linu     13 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
 14                                                    14 
 15 Description:    Generic performance monitoring     15 Description:    Generic performance monitoring events
 16                                                    16 
 17                 A collection of performance mo     17                 A collection of performance monitoring events that may be
 18                 supported by many/most CPUs. T     18                 supported by many/most CPUs. These events can be monitored
 19                 using the 'perf(1)' tool.          19                 using the 'perf(1)' tool.
 20                                                    20 
 21                 The contents of each file woul     21                 The contents of each file would look like:
 22                                                    22 
 23                         event=0xNNNN               23                         event=0xNNNN
 24                                                    24 
 25                 where 'N' is a hex digit and t     25                 where 'N' is a hex digit and the number '0xNNNN' shows the
 26                 "raw code" for the perf event      26                 "raw code" for the perf event identified by the file's
 27                 "basename".                        27                 "basename".
 28                                                    28 
 29                                                    29 
 30 What: /sys/bus/event_source/devices/<pmu>/even     30 What: /sys/bus/event_source/devices/<pmu>/events/<event>
 31 Date: 2014/02/24                                   31 Date: 2014/02/24
 32 Contact:        Linux kernel mailing list <linu     32 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
 33 Description:    Per-pmu performance monitoring     33 Description:    Per-pmu performance monitoring events specific to the running system
 34                                                    34 
 35                 Each file (except for some of      35                 Each file (except for some of those with a '.' in them, '.unit'
 36                 and '.scale') in the 'events'      36                 and '.scale') in the 'events' directory describes a single
 37                 performance monitoring event s     37                 performance monitoring event supported by the <pmu>. The name
 38                 of the file is the name of the     38                 of the file is the name of the event.
 39                                                    39 
 40                 As performance monitoring even     40                 As performance monitoring event names are case
 41                 insensitive in the perf tool,      41                 insensitive in the perf tool, the perf tool only looks
 42                 for lower or upper case event      42                 for lower or upper case event names in sysfs to avoid
 43                 scanning the directory. It is      43                 scanning the directory. It is therefore required the
 44                 name of the event here is eith     44                 name of the event here is either lower or upper case.
 45                                                    45 
 46                 File contents:                     46                 File contents:
 47                                                    47 
 48                         <term>[=<value>][,<ter     48                         <term>[=<value>][,<term>[=<value>]]...
 49                                                    49 
 50                 Where <term> is one of the ter     50                 Where <term> is one of the terms listed under
 51                 /sys/bus/event_source/devices/     51                 /sys/bus/event_source/devices/<pmu>/format/ and <value> is
 52                 a number is base-16 format wit     52                 a number is base-16 format with a '0x' prefix (lowercase only).
 53                 If a <term> is specified alone     53                 If a <term> is specified alone (without an assigned value), it
 54                 is implied that 0x1 is assigne     54                 is implied that 0x1 is assigned to that <term>.
 55                                                    55 
 56                 Examples (each of these lines      56                 Examples (each of these lines would be in a separate file):
 57                                                    57 
 58                         event=0x2abc               58                         event=0x2abc
 59                         event=0x423,inv,cmask=     59                         event=0x423,inv,cmask=0x3
 60                         domain=0x1,offset=0x8,     60                         domain=0x1,offset=0x8,starting_index=0xffff
 61                         domain=0x1,offset=0x8,     61                         domain=0x1,offset=0x8,core=?
 62                                                    62 
 63                 Each of the assignments indica     63                 Each of the assignments indicates a value to be assigned to a
 64                 particular set of bits (as def     64                 particular set of bits (as defined by the format file
 65                 corresponding to the <term>) i     65                 corresponding to the <term>) in the perf_event structure passed
 66                 to the perf_open syscall.          66                 to the perf_open syscall.
 67                                                    67 
 68                 In the case of the last exampl     68                 In the case of the last example, a value replacing "?" would
 69                 need to be provided by the use     69                 need to be provided by the user selecting the particular event.
 70                 This is referred to as "event      70                 This is referred to as "event parameterization". Event
 71                 parameters have the format 'pa     71                 parameters have the format 'param=?'.
 72                                                    72 
 73 What: /sys/bus/event_source/devices/<pmu>/even     73 What: /sys/bus/event_source/devices/<pmu>/events/<event>.unit
 74 Date: 2014/02/24                                   74 Date: 2014/02/24
 75 Contact:        Linux kernel mailing list <linu     75 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
 76 Description:    Perf event units                   76 Description:    Perf event units
 77                                                    77 
 78                 A string specifying the Englis     78                 A string specifying the English plural numerical unit that <event>
 79                 (once multiplied by <event>.sc     79                 (once multiplied by <event>.scale) represents.
 80                                                    80 
 81                 Example:                           81                 Example:
 82                                                    82 
 83                         Joules                     83                         Joules
 84                                                    84 
 85 What: /sys/bus/event_source/devices/<pmu>/even     85 What: /sys/bus/event_source/devices/<pmu>/events/<event>.scale
 86 Date: 2014/02/24                                   86 Date: 2014/02/24
 87 Contact:        Linux kernel mailing list <linu     87 Contact:        Linux kernel mailing list <linux-kernel@vger.kernel.org>
 88 Description:    Perf event scaling factors         88 Description:    Perf event scaling factors
 89                                                    89 
 90                 A string representing a floati     90                 A string representing a floating point value expressed in
 91                 scientific notation to be mult     91                 scientific notation to be multiplied by the event count
 92                 received from the kernel to ma     92                 received from the kernel to match the unit specified in the
 93                 <event>.unit file.                 93                 <event>.unit file.
 94                                                    94 
 95                 Example:                           95                 Example:
 96                                                    96 
 97                         2.32830643653869628906     97                         2.3283064365386962890625e-10
 98                                                    98 
 99                 This is provided to avoid perf     99                 This is provided to avoid performing floating point arithmetic
100                 in the kernel.                    100                 in the kernel.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php