Hello, I am getting the error: invalid event attribute for cpu_clk_unhalted.thread. However, I do get counter values which are in the expected range even though an error message is printed out. However, there is no error when I try cpu_clk_unhalted.thread_p instead.
The error occurs when calling this line:
ret = pfm_get_os_event_encoding(event, PFM_PLM3, PFM_OS_PERF_EVENT, &arg)) != PFM_SUCCESS
I use the following config:
// clear all fields
memset(&config, 0, sizeof(config));
// common options across counters
apply_default_options(&config);
apply_required_options(&config);
Hello, I am getting the error: invalid event attribute for cpu_clk_unhalted.thread. However, I do get counter values which are in the expected range even though an error message is printed out. However, there is no error when I try cpu_clk_unhalted.thread_p instead.
The error occurs when calling this line:
ret = pfm_get_os_event_encoding(event, PFM_PLM3, PFM_OS_PERF_EVENT, &arg)) != PFM_SUCCESSI use the following config: