lkml.org 
[lkml]   [2023]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v5 1/2] perf tools: Sync perf_event_attr::config3 addition
    Arm SPEv1.2 adds another 64-bits of event filtering control. As the
    existing perf_event_attr::configN fields are all used up for SPE PMU, an
    additional field is needed. Add a new 'config3' field.

    Signed-off-by: Rob Herring <robh@kernel.org>
    ---
    This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3")
    for the kernel queued in linux-next.
    ---
    tools/include/uapi/linux/perf_event.h | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h
    index ea6defacc1a7..a38814ce9485 100644
    --- a/tools/include/uapi/linux/perf_event.h
    +++ b/tools/include/uapi/linux/perf_event.h
    @@ -365,6 +365,7 @@ enum perf_event_read_format {
    #define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */
    #define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */
    #define PERF_ATTR_SIZE_VER7 128 /* add: sig_data */
    +#define PERF_ATTR_SIZE_VER8 136 /* add: config3 */

    /*
    * Hardware event_id to monitor via a performance monitoring event:
    @@ -506,6 +507,8 @@ struct perf_event_attr {
    * truncated accordingly on 32 bit architectures.
    */
    __u64 sig_data;
    +
    + __u64 config3; /* extension of config2 */
    };

    /*
    --
    2.39.1

    \
     
     \ /
      Last update: 2023-03-27 00:27    [W:3.533 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site