Skip to content

Conversation

@mbyzhang
Copy link

@mbyzhang mbyzhang commented Oct 5, 2025

PERF_EVENT_IOC_PERIOD ioctl is expecting a pointer to a u64 rather than a plain u64*. This commit fixes that.

*: in perf_event_open(2) manpage

       PERF_EVENT_IOC_PERIOD
              This updates the overflow period for the event.

              Since Linux 3.7 (on ARM) and Linux 3.14 (all other
              architectures), the new period takes effect immediately.
              On older kernels, the new period did not take effect until
              after the next overflow.

              The argument is a pointer to a 64-bit value containing the
              desired new period.

              Prior to Linux 2.6.36, this ioctl always failed due to a
              bug in the kernel.

PERF_EVENT_IOC_PERIOD ioctl is expecting a pointer to a u64 rather than a plain u64. This commit fixes that.
@mbyzhang mbyzhang force-pushed the sys-ioctls-period-fix-argument-type branch from d492d83 to 7ea6bfd Compare October 21, 2025 10:39
@mbyzhang
Copy link
Author

mbyzhang commented Oct 21, 2025

V2: fixed the CI failure

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant