Skip to content

Creating PerfEventOutput objects for unavailable CPUs #39

Description

@jmbass

Here a PerfEventOutput's created for each CPU configured by the OS, but that doesn't mean the CPU is available.

Boot with nosmt, for example, makes some cores unavailable event if they're configured by the OS. Attempting to open PerfEventOutputs on them results in ENODEV (No such device) errors.

I'm wondering why get_nprocs_conf was used instead of get_nprocs which only returns the number of processors currently available in the system and wether the latter should be used instead.

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