Re: [RFC PATCH 3/5] kselftests/resctrl: remove unnecessary exclude_idle

From: Shaopeng Tan (Fujitsu)

Date: Mon Mar 02 2026 - 02:36:42 EST


Hello Reinette,

Thank you for your comments.

> Just to confirm, does "not supported on Arm" imply that perf_event_open() fails when
> exclude_idle is 1? Thus encountering:
> EPERM Returned on many (but not all) architectures when an unsupported
> exclude_hv, exclude_idle, exclude_user, or exclude_kernel setting is
> specified.

perf_event_open() fails and returns EOPNOTSUPP.

perf_event_open({type=PERF_TYPE_RAW, size=0x88 /* PERF_ATTR_SIZE_??? */, config=0x3, sample_period=0, sample_type=PERF_SAMPLE_IDENTIFIER, read_format=PERF_FORMAT_GROUP, disabled=1, inherit=1, exclude_kernel=1, exclude_hv=1, exclude_idle=1, precise_ip=0 /* arbitrary skid */, exclude_guest=1, exclude_callchain_kernel=1, ...}, 14260, 1, -1, PERF_FLAG_FD_CLOEXEC) = -1 EOPNOTSUPP

Other suggestions will be addressed in the next patch series. Thank you.

Best regards,
Shaopeng TAN