-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
libbpf-tools/softirqs: Fix logarithmic calculation issue #5208
Conversation
I encountered R1 unbounded memory access when changing log2 to log2l. The log is in softirq.log.
The logs of both are as follows:
r1: hists However, may I ask why this situation has occurred? |
The failed code is due to compiler optimizations.
R1 did some range refinement. But unfortunately, register R6 didn't inherit refined R1 so later it caused verification. In Makefile, we have
why you didn't use -mcpu=v3? Which compiler you are using? |
Should use log2l. Signed-off-by: Feng Yang <[email protected]>
I'm so sorry. I happened to not update the patch 'libbpf tools/softirqs: Add |
Should use log2l.
When there is a function call, R1 unbounded memory access problem occurs, so inline is used.