lkml.org 
[lkml]   [2024]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/10] perf: Define common uncore capabilities
    Date
    Nearly all uncore/system PMUs share a common set of capbilities,
    so let's wrap those up in a single macro for ease of use.

    Signed-off-by: Robin Murphy <robin.murphy@arm.com>
    ---
    include/linux/perf_event.h | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
    index b1fd832ed8bf..5d5db122005b 100644
    --- a/include/linux/perf_event.h
    +++ b/include/linux/perf_event.h
    @@ -293,6 +293,9 @@ struct perf_event_pmu_context;
    #define PERF_PMU_CAP_EXTENDED_HW_TYPE 0x0100
    #define PERF_PMU_CAP_NO_COMMON_EVENTS 0x0200

    +#define PERF_PMU_UNCORE_CAPS \
    +(PERF_PMU_CAP_NO_SAMPLING| PERF_PMU_CAP_NO_EXCLUDE | PERF_PMU_CAP_NO_COMMON_EVENTS)
    +
    struct perf_output_handle;

    #define PMU_NULL_DEV ((void *)(~0UL))
    --
    2.39.2.101.g768bb238c484.dirty

    \
     
     \ /
      Last update: 2024-05-27 15:45    [W:4.642 / U:0.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site