• Anshuman Khandual's avatar
    perf branch: Extend branch type classification · 0ddea8e2
    Anshuman Khandual authored
    This updates the perf tool with generic branch type classification with new
    ABI extender place holder i.e PERF_BR_EXTEND_ABI, the new 4 bit branch type
    field i.e perf_branch_entry.new_type, new generic page fault related branch
    types and some arch specific branch types as added earlier in the kernel.
    
    Committer note:
    
    Add an extra entry to the branch_type_name array to cope with
    PERF_BR_EXTEND_ABI, to address build warnings on some compiler/systems,
    like:
    
      75     8.89 ubuntu:20.04-x-powerpc64el    : FAIL gcc version 10.3.0 (Ubuntu 10.3.0-1ubuntu1~20.04)
            inlined from 'branch_type_stat_display' at util/branch.c:152:4:
        /usr/powerpc64le-linux-gnu/include/bits/stdio2.h:100:10: error: '%8s' directive argument is null [-Werror=format-overflow=]
          100 |   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
              |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          101 |    __va_arg_pack ());
              |    ~~~~~~~~~~~~~~~~~
    Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Robin Murphy <robin.murphy@arm.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Will Deacon <will@kernel.org>
    Cc: linux-arm-kernel@lists.infradead.org
    Link: https://lore.kernel.org/r/20220824044822.70230-7-anshuman.khandual@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    0ddea8e2
builtin-script.c 113 KB