• James Clark's avatar
    perf tools arm64: Add support for VG register · 2be00431
    James Clark authored
    Add the name of the VG register so it can be used in --user-regs
    
    The event will fail to open if the register is requested but not
    available so only add it to the mask if the kernel supports sve and also
    if it supports that specific register.
    
    Committer notes:
    
    Add conditional definition of HWCAP_SVE, as suggested by Leo Yan, to
    build on older systems where this is not available in the system
    headers.
    Reviewed-by: default avatarLeo Yan <leo.yan@linaro.org>
    Signed-off-by: default avatarJames Clark <james.clark@arm.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: German Gomez <german.gomez@arm.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: John Garry <john.garry@huawei.com>
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
    Cc: Mike Leach <mike.leach@linaro.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: linux-arm-kernel@lists.infradead.org
    Link: https://lore.kernel.org/r/20220525154114.718321-6-james.clark@arm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    2be00431
perf_regs.c 4.15 KB