Re: [PATCH v2 18/20] perf tools: Add support for the SPF perf event

From: Laurent Dufour
Date: Fri Aug 25 2017 - 04:54:04 EST


On 21/08/2017 10:48, Anshuman Khandual wrote:
> On 08/18/2017 03:35 AM, Laurent Dufour wrote:
>> Add support for the new speculative faults event.
>>
>> Signed-off-by: Laurent Dufour <ldufour@xxxxxxxxxxxxxxxxxx>
>> ---
>> 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.
>

Fair enough, I'll rename it PERF_COUNT_SW_SPF.

Thanks,
Laurent.