Replies: 3 comments 7 replies
-
I suppose the driver use the "-O2" option which made most of the functions were inlined. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Kernel code needs to be compiled with -O2. That's just a general rule that's been around forever. There are functions that depend on being inlined in order to work properly. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I trace the kernel function "filp_close" by eBPF tools, I got the stack as below:
The "__nvoc_dtor_MIGConfigSession" function belongs to nvidia driver, but the stacktrace didn't show who called the "__nvoc_dtor_MIGConfigSession". The possible reason is that the "OS-agnostic" driver disable the "stacktrace" by gcc option "-fomit-frame-pointer", I tried to build the driver with gcc option "-fno-omit-frame-pointer", however it didn't work.
Is anyone can help with this? How to build the driver with "stacktrace" enabled so that I would debug the nvidia driver issue?
Beta Was this translation helpful? Give feedback.
All reactions