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

Compilation issue (Invalid usage of the XADD return value) #389

Open
prithivi17 opened this issue Jun 20, 2024 · 0 comments
Open

Compilation issue (Invalid usage of the XADD return value) #389

prithivi17 opened this issue Jun 20, 2024 · 0 comments

Comments

@prithivi17
Copy link

During the compilation, i faced a issue of compilation getting failed with a fatal error (Invalid usage of the XADD return value)
image

As i searched for the fix, it seems like there is a issue with kprobe_pwru.c code, as i surfed through it i found that the __sync_fetch_and_add() function seems to trigger the issue, It seems like this function is used for translating to XADD. As a workaround, i replaced the function with bpf_xadd(), it seems like the issue is fixed and compilation is exited successfully.

Just wanted to know why __sync_fetch_and_add() function is not working and will there be any effect in the tool function if i change the above mentioned problamatic one with this (bpf_xadd()) one.

Thanks in advance.

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

1 participant