Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on PerfEvents Stop() #79

Open
bogdanvbalan opened this issue Jan 9, 2023 · 1 comment
Open

Crash on PerfEvents Stop() #79

bogdanvbalan opened this issue Jan 9, 2023 · 1 comment

Comments

@bogdanvbalan
Copy link

Calling perf.Stop() immediately after calling perf.StartForAllProcessesAndCPUs() will lead to a crash. This can be reproduced in the xdp_dump example by adding perf.Stop() call after the successful perf.StartForAllProcessesAndCPUs() call.
The initial use case where it was observed was having multiple perf maps, initializing multiple PerfEvents, one for each map, and calling Stop() on the init sequence for the PerfEvents that were already started.

@belyalov
Copy link
Contributor

belyalov commented Jan 9, 2023

You're very welcome to make a pull request if you know how to reproduce and fix it.. :)

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

No branches or pull requests

2 participants