-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
RISC-V: cachestat tool fails to run: "no member named 'pc' in 'struct pt_regs'" #4110
Comments
This is because |
I think @chenhengqi is right, you can refer to: |
So, libbpf already uses But Some issue in the build scripts? Or? |
This should be fixed in BCC, you can just copy the macros from libbpf. |
Fix iovisor#4110 . With this patch, running tools/cachestat on riscv64 can get the expected result. Signed-off-by: Mingzheng Xing <[email protected]>
Hi, @euspectre . I fixed it according to @chenhengqi ‘s suggestion and it worked. Please let me know if I'm missing anything, thanks a lot. |
I see. Thanks for the explanation. |
The fix from #4116 helps in my system too. Great! |
Fix #4110 . With this patch, running tools/cachestat on riscv64 can get the expected result. Signed-off-by: Mingzheng Xing <[email protected]>
Fix iovisor#4110 . With this patch, running tools/cachestat on riscv64 can get the expected result. Signed-off-by: Mingzheng Xing <[email protected]>
System: QEMU VM with riscv64 CPU, OS: Ubuntu 22.04 with kernel 5.15.0-1014-generic.
If I understand it correctly, 'epc' should be used instead of 'pc', same as in arch/riscv/include/asm/ptrace.h.
Right?
@xmzzz, what do you think?
The text was updated successfully, but these errors were encountered: