Re: [PATCH] perf record: enable multiplexing scaling via -R

From: Andi Kleen
Date: Mon Aug 28 2017 - 16:41:23 EST


> So I think we are good to go. to capture multiplexing scaling factor
> when sampling simply use the S
> modifier.
> But to my surprise, newer kernels are not happy with the cmdline:
> $ perf record -e cycles:S noploop 1
> Error:
> The sys_perf_event_open() syscall returned with 22 (Invalid argument)
> for event (cycles:Su).
> /bin/dmesg may provide additional information.
> No CONFIG_PERF_EVENTS=y kernel support configured?

Likely due to

ba5213ae6b88 perf/core: Correct event creation with PERF_FORMAT_GROUP

It's not supported with inherited events.

-Andi