On 08/18/2017 03:35 AM, Laurent Dufour wrote: > Add support for the new speculative faults event. > > Signed-off-by: Laurent Dufour <lduf...@linux.vnet.ibm.com> > --- > tools/include/uapi/linux/perf_event.h | 1 + > tools/perf/util/evsel.c | 1 + > tools/perf/util/parse-events.c | 4 ++++ > tools/perf/util/parse-events.l | 1 + > tools/perf/util/python.c | 1 + > 5 files changed, 8 insertions(+) > > diff --git a/tools/include/uapi/linux/perf_event.h > b/tools/include/uapi/linux/perf_event.h > index b1c0b187acfe..3043ec0988e9 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -111,6 +111,7 @@ enum perf_sw_ids { > PERF_COUNT_SW_EMULATION_FAULTS = 8, > PERF_COUNT_SW_DUMMY = 9, > PERF_COUNT_SW_BPF_OUTPUT = 10, > + PERF_COUNT_SW_SPF_DONE = 11,
Right, just one event for the success case. 'DONE' is redundant, only 'SPF' should be fine IMHO.