You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the compilation, i faced a issue of compilation getting failed with a fatal error (Invalid usage of the XADD return value)
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.
The text was updated successfully, but these errors were encountered:
During the compilation, i faced a issue of compilation getting failed with a fatal error (Invalid usage of the XADD return value)
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.
The text was updated successfully, but these errors were encountered: