-
Notifications
You must be signed in to change notification settings - Fork 61
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
detect when perf is permission denied and give the user a helpful message #17
Comments
We can use something similar to
In particular we could include a shell command to make an non-permanent change in the setting, either: |
On my system |
Sadly, |
Last try to get enough permissions to run perf... otherwise it means andrewrk/poop#17 (comment) is blocking it.
|
On CI/CD test poop (release-safe build) not working: /home/runner/work/zig-http-benchmarks/zig-http-benchmarks/poop/src/main.zig:0:0: 0x2248f1 in main (poop)
/opt/hostedtoolcache/zig/master/x64/lib/std/start.zig:370:37: 0x218777 in posixCallMainAndExit (poop)
var i: usize = 0;
^
/opt/hostedtoolcache/zig/master/x64/lib/std/start.zig:243:5: 0x2181b1 in _start (poop)
asm volatile (switch (native_arch) {
^
???:?:?: 0xa in ??? (???)
Unwind information for `???:0xa` was not available, trace may be incomplete
./bench.sh: line 76: 5138 Aborted (core dumped) poop -d 100 "${commands[@]}" output: https://github.com/kassane/zig-http-benchmarks/actions/runs/6159000724/job/16712925109#step:7:213 |
I ran into this error on x86_64 Ubuntu 24.04.1 LTS:
Running |
I got the same panic on the same OS, and running |
https://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar
#16 (comment)
poop should inform the user how to configure their system to make it work without root access.
The text was updated successfully, but these errors were encountered: