Re: [RFC PATCH 1/5] kselftests/resctrl: Detect the ARM architecture

From: Reinette Chatre

Date: Tue Feb 17 2026 - 12:51:06 EST


Hi Shaopeng,

On 1/22/26 8:40 PM, Shaopeng Tan wrote:
> The resctrl test is not enabled for MPAM (ARM Memory System Resource
> Partitioning and Monitoring)
> Add processing to detect the ARM architecture.
>
> Signed-off-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxx>
> ---
> tools/testing/selftests/resctrl/resctrl.h | 1 +
> tools/testing/selftests/resctrl/resctrl_tests.c | 7 +++++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/tools/testing/selftests/resctrl/resctrl.h b/tools/testing/selftests/resctrl/resctrl.h
> index 3c51bdac2dfa..492d2a1c4033 100644
> --- a/tools/testing/selftests/resctrl/resctrl.h
> +++ b/tools/testing/selftests/resctrl/resctrl.h
> @@ -38,6 +38,7 @@
> */
> #define ARCH_INTEL 1
> #define ARCH_AMD 2
> +#define ARCH_ARM 3

Please see recent enhancement in this area:
4f4f01cc333e ("selftests/resctrl: Define CPU vendor IDs as bits to match usage")

Reinette