perf_event_mmap_page.pmc_width

If cap_user_rdpmc this field provides the bit-width of the value read using the rdpmc() or equivalent instruction. This can be used to sign extend the result like:

pmc <<= 64 - width; pmc >>= 64 - width; // signed shift right count += pmc;

struct perf_event_mmap_page
ushort pmc_width;

Meta