-
Notifications
You must be signed in to change notification settings - Fork 698
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
Friendly map create errors, document rlimit and perf ring garbage #94
Conversation
f87f4f6
to
107dbd5
Compare
ceccbac
to
7dd9d2a
Compare
Hi @lmb, is this good to go? Any other feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a long week-end, hence the delay :) The error messages are much more understandable now, thanks!
7dd9d2a
to
8927f58
Compare
…reproducer A patch for this was submitted upstream: https://lore.kernel.org/patchwork/patch/1244339. Promises about the buffer's alignment were also removed because they were inacurrate. The `perf_event_open` man page is incorrect, and there's another bug in the kernel that causes these buffers to be unaligned.
8927f58
to
3e03ece
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing, and your patience!
Hi all,
While migrating a project off of gobpf, I encountered some issues loading an ELF binary, most of which have been addressed below. There's another part that deals with overwriting the binary's
version
section with the running kernel'sLINUX_VERSION_CODE
, but that I'd like to address in another PR.The removal of BTF requirements in data sections and the rlimit changes might need some extra test coverage, but please let me know what you think before I get started on that.
I've added a bit more detailed info about the perf event buffer underrun in the commit that introduced it:
I think I might've stumbled across a kernel bug, but looking at bcc and gobpf, it seems like many userspace libraries already depend on that behaviour by now and discard those bytes by default. Raw perf events are 64-bit aligned, but the test case wasn't.