Open ywangwrs opened 4 years ago
What kernel version is this? When I run it in unsupported environment I'm getting ENOENT.
ENODEV Returned when the event involves a feature not supported by the current CPU.
ENOENT Returned if the type setting is not valid. This error is also returned for some unsupported generic events.
uname: Linux xilinx-zynq 5.4.42-yocto-standard #1 SMP PREEMPT Tue May 26 03:49:55 PDT 2020 armv7l armv7l armv7l GNU/Linux
Attached is the full log.
Any update on this ticket?
When running perf_event_open01 test on Xilinx ZYNQ ZC702/706 board, it fails with the following error:
The issue is this type of boards don't support Kernel PMU event, this can be verified through the following command:
So I think this line of the test code: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/perf_event_open/perf_event_open01.c#L152 should include the situation of TEST_ERRNO=EINVAL(22).