| Submitter | sukadev@linux.vnet.ibm.com |
|---|---|
| Date | Jan. 18, 2013, 5:46 p.m. |
| Message ID | <20130118174654.GA12575@us.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/213697/ |
| State | Superseded |
| Headers | show |
Comments
Em Fri, Jan 18, 2013 at 09:46:54AM -0800, Sukadev Bhattiprolu escreveu: > Jiri Olsa [jolsa@redhat.com] wrote: > | Maybe it'd worth to mention, that it does not need to be just 'event', > | but anything from /sys/bus/event_source/devices/<dev>/format directory, > | like > | > | The can be multiple terms like 'event=0xNNNN' specified > | and separated with comma. All available terms are located > | in /sys/bus/event_source/devices/<dev>/format file. > | > | Please feel free to rephrase or use proper English ;-) > | > | otherwise it's ok, > | jirka > > Agree. Thanks for the review. Here is the updated patch. Ok, I'll wait for Jiri's final acked-by, then you can resubmit the patch series and I'll apply it to my perf/core branch. - Arnaldo
On Fri, Jan 18, 2013 at 09:46:54AM -0800, Sukadev Bhattiprolu wrote: > Jiri Olsa [jolsa@redhat.com] wrote: SNIP > + > +Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org> > + Linux Powerpc mailing list <linuxppc-dev@ozlabs.org> > + > +Description: POWER-systems specific performance monitoring events > + > + A collection of performance monitoring events that may be > + supported by the POWER CPU. These events can be monitored > + using the 'perf(1)' tool. > + > + These events may not be supported by other CPUs. > + > + The contents of each file would look like: > + > + event=0xNNNN > + > + where 'N' is a hex digit and the number '0xNNNN' shows the > + "raw code" for the perf event identified by the file's > + "basename". > + > + Further, multiple terms like 'event=0xNNNN' can be specified > + and separated with comma. All available terms are defined in > + the /sys/bus/event_source/devices/<dev>/format file. Acked-by: Jiri Olsa <jolsa@redhat.com> thanks, jirka
Patch
diff --git a/Documentation/ABI/stable/sysfs-devices-cpu-events b/Documentation/ABI/stable/sysfs-devices-cpu-events deleted file mode 100644 index e69de29..0000000 diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-events b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events new file mode 100644 index 0000000..0adeb52 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-events @@ -0,0 +1,62 @@ +What: /sys/devices/cpu/events/ + /sys/devices/cpu/events/branch-misses + /sys/devices/cpu/events/cache-references + /sys/devices/cpu/events/cache-misses + /sys/devices/cpu/events/stalled-cycles-frontend + /sys/devices/cpu/events/branch-instructions + /sys/devices/cpu/events/stalled-cycles-backend + /sys/devices/cpu/events/instructions + /sys/devices/cpu/events/cpu-cycles + +Date: 2013/01/08 + +Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org> + +Description: Generic performance monitoring events + + A collection of performance monitoring events that may be + supported by many/most CPUs. These events can be monitored + using the 'perf(1)' tool. + + The contents of each file would look like: + + event=0xNNNN + + where 'N' is a hex digit and the number '0xNNNN' shows the + "raw code" for the perf event identified by the file's + "basename". + + +What: /sys/devices/cpu/events/PM_LD_MISS_L1 + /sys/devices/cpu/events/PM_LD_REF_L1 + /sys/devices/cpu/events/PM_CYC + /sys/devices/cpu/events/PM_BRU_FIN + /sys/devices/cpu/events/PM_GCT_NOSLOT_CYC + /sys/devices/cpu/events/PM_BRU_MPRED + /sys/devices/cpu/events/PM_INST_CMPL + /sys/devices/cpu/events/PM_CMPLU_STALL + +Date: 2013/01/08 + +Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org> + Linux Powerpc mailing list <linuxppc-dev@ozlabs.org> + +Description: POWER-systems specific performance monitoring events + + A collection of performance monitoring events that may be + supported by the POWER CPU. These events can be monitored + using the 'perf(1)' tool. + + These events may not be supported by other CPUs. + + The contents of each file would look like: + + event=0xNNNN + + where 'N' is a hex digit and the number '0xNNNN' shows the + "raw code" for the perf event identified by the file's + "basename". + + Further, multiple terms like 'event=0xNNNN' can be specified + and separated with comma. All available terms are defined in + the /sys/bus/event_source/devices/<dev>/format file.