Skip to content

[v2.0.0] Add timestamped polling #173

@rountree

Description

@rountree

I've reimplemented this idea multiple times and have finally settled on the following.

The idea is simple: Replace isrdmsr with a bit vector that has flags for reading, writing, and polling, along with a set of flags for when to read MPERF (at the start of the op, at the end, and before each polled read).

This feature is the best way to get a handle on how long it takes for certain MSRs to be updated, e.g., energy and temperature. It can also be useful for implementing what is effectively a userspace signal: the op completes (and the ioctl() returns) when the value of the given MSR changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions