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

A few small fixes and clean ups #53

Merged
merged 4 commits into from
Oct 2, 2023
Merged

A few small fixes and clean ups #53

merged 4 commits into from
Oct 2, 2023

Conversation

anakryiko
Copy link
Owner

No description provided.

Clean up dependencies a bit.

Signed-off-by: Andrii Nakryiko <[email protected]>
Add this option to silence newer LD's complaining about potential
executable stack.

Signed-off-by: Andrii Nakryiko <[email protected]>
Mass attacher has a feature to filter some functions, but it's never
used, so get rid of it for now.

Signed-off-by: Andrii Nakryiko <[email protected]>
BPF code is always 64-bit with 64-bit architecture rules, including u64
alignment, etc. struct func_info exposes an interesting corner case
where all the fields are at correct offsets regardless of 32-bit or
64-bit architecture, but the size of the struct differs because on
64-bit architecture alignment of `struct func_info` is 8 bytes, and thus
the size is 56 bytes, while on 32-bit architecture u64 still has 4-byte
alignment, so there is no need for extra 4 bytes of padding, leading to
`sizeof(struct func_info) == 52`.

Fix this issue by forcing alignment to be 8.

Reported-by: Michel Lind <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
@anakryiko anakryiko merged commit e8d459a into master Oct 2, 2023
@anakryiko anakryiko deleted the retsnoop-build-fixes branch October 2, 2023 21:20
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