Skip to content

Conversation

@abhizer
Copy link

@abhizer abhizer commented Dec 12, 2025

In some setups, like running in an EKS cluster, currently there's a false negative where the profiler exits before trying SwCpuClock because it sees that the perf_event_paranoid level is set to 2. However, if the binary has been given correct capability (CAP_PERFMON), the paranoia level doesn't really matter.

This patch fixes it to only check the paranoia level and error if we fail to run with both Hardware and Software CPU Clock events.

In some setups, like running in an EKS cluster, currently there's
a false negative where the profiler exits before trying SwCpuClock
because it sees that the `perf_event_paranoid` level is set to 2.
However, if the binary has been given correct capability (CAP_PERFMON),
the paranoia level doesn't really matter.

This patch fixes it to only check the paranoia level and error if we
fail to run with both Hardware and Software CPU Clock events.

Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>
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