Hi, Sorry for the late reply. I had a problem with the mailing list and did not see your msg earlier.
How are you programming this event? Is this via perf stat or something else. You seem to be running on Intel CascadeLakeX. It supports the event you want. However in libpfm4, right now, it is called cpu_clk_thread_unhalted.thread_p. In the Intel event tables (JSON) you have two versions of the event. One is trying to force the event on the fixed counter that supports it. This is cpu_clk_unhalted.thread. But they also have cpu_clk_unhalted.thread_p (_p means programmable counter). And you can access these via perf stat -e. To access the libpfm4 events with perf you need to compile the perf tol with libpfm4 support and then you can do: perf stat --pfm-events ..... The mapping between Intel JSON and libpfm4 is as follows Intel: cpu_clk_unhalted.thread -> libpfm4: unhalted_core_cycles Intel: cpu_clk_unhalted.thread_p -> libpfm4: cpu_clk_thread_unhalted.thread_p In the end it does not make any difference which one you chose because they both count the same thing. The kernel will program the event in whichever counter is available. Hope this helps. I am getting the error: invalid event attribute for cpu_clk_unhalted.thread.
_______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel