perf test: Add a test for the new Arm CPU ID comparison behavior
authorJames Clark <james.clark@arm.com>
Wed, 16 Aug 2023 11:47:44 +0000 (12:47 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Aug 2023 17:11:54 +0000 (14:11 -0300)
commit81f7da549af472180ac2635b4b335a01fd8ee866
tree27c8187ba700dfbb7a77156fc41a1e67de521fb0
parentc3e1e8cf006bf8ed7e32b57ed00a1fe3ed2b1a08
perf test: Add a test for the new Arm CPU ID comparison behavior

Now that variant and revision fields are taken into account the behavior
is slightly more complicated so add a test to ensure that this behaves
as expected.

Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: James Clark <james.clark@arm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Haixin Yu <yuhaixin.yhx@linux.alibaba.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nick Forrington <nick.forrington@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Sohom Datta <sohomdatta1@gmail.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20230816114841.1679234-3-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm64/include/arch-tests.h
tools/perf/arch/arm64/tests/Build
tools/perf/arch/arm64/tests/arch-tests.c
tools/perf/arch/arm64/tests/cpuid-match.c [new file with mode: 0644]