Skip to content

Invalid event attribute for cpu_clk_unhalted.thread #6

Description

@anson304

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions