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

pwru fails to run if compiled on machine with more CPUs than target #183

Closed
terinjokes opened this issue May 30, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@terinjokes
Copy link

terinjokes commented May 30, 2023

If the machine that compiled pwru has more CPUs than the machine that runs it I get the following error, along with an exit code 1:

Creating perf event reader: failed to create perf ring for CPU 1: can't create perf event: Invalid argument

I've attached the full strace, but the main syscall that failed is installing the perf_event to the (non-existent) second CPU:

[pid  1994] perf_event_open({type=PERF_TYPE_SOFTWARE, size=PERF_ATTR_SIZE_VER7, config=PERF_COUNT_SW_BPF_OUTPUT, sample_period=0, sample_type=PERF_SAMPLE_RAW, read_format=0, watermark=1, precise_ip=0 /* arbitrary skid */, ...}, -1, 1, -1, PERF_FLAG_FD_CLOEXEC) = -1 EINVAL (Invalid argument)

strace.log


Previously discussed in #89 (comment)

@brb
Copy link
Member

brb commented May 31, 2023

Thanks for the issue! @ti-mo MBOI.

@brb brb added the bug Something isn't working label May 31, 2023
@terinjokes
Copy link
Author

Closing, as this turned out to be a packaging mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants