lkml.org 
[lkml]   [2022]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V7 4/8] perf: Add PERF_BR_NEW_ARCH_[N] map for BRBE on arm64 platform
    Date
    BRBE captured branch types will overflow perf_branch_entry.type and generic
    branch types in perf_branch_entry.new_type. So override each available arch
    specific branch type in the following manner to comprehensively process all
    reported branch types in BRBE.

    PERF_BR_ARM64_FIQ PERF_BR_NEW_ARCH_1
    PERF_BR_ARM64_DEBUG_HALT PERF_BR_NEW_ARCH_2
    PERF_BR_ARM64_DEBUG_EXIT PERF_BR_NEW_ARCH_3
    PERF_BR_ARM64_DEBUG_INST PERF_BR_NEW_ARCH_4
    PERF_BR_ARM64_DEBUG_DATA PERF_BR_NEW_ARCH_5

    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Will Deacon <will@kernel.org>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-perf-users@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Reviewed-by: James Clark <james.clark@arm.com>
    Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
    ---
    include/uapi/linux/perf_event.h | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
    index 19e4b69d7297..e8c4a9716756 100644
    --- a/include/uapi/linux/perf_event.h
    +++ b/include/uapi/linux/perf_event.h
    @@ -282,6 +282,12 @@ enum {
    PERF_BR_PRIV_HV = 3,
    };

    +#define PERF_BR_ARM64_FIQ PERF_BR_NEW_ARCH_1
    +#define PERF_BR_ARM64_DEBUG_HALT PERF_BR_NEW_ARCH_2
    +#define PERF_BR_ARM64_DEBUG_EXIT PERF_BR_NEW_ARCH_3
    +#define PERF_BR_ARM64_DEBUG_INST PERF_BR_NEW_ARCH_4
    +#define PERF_BR_ARM64_DEBUG_DATA PERF_BR_NEW_ARCH_5
    +
    #define PERF_SAMPLE_BRANCH_PLM_ALL \
    (PERF_SAMPLE_BRANCH_USER|\
    PERF_SAMPLE_BRANCH_KERNEL|\
    --
    2.25.1
    \
     
     \ /
      Last update: 2022-08-24 06:50    [W:3.837 / U:0.244 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site