How to analysis lock in the kernel module #578
Unanswered
littletiny
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to get the lock info to do some runtime lock analysis, such as bellow callstack,
how can I do it?
There are some traces info for lock/unlock, but I cannot find how to get it?
struct LOCK_TRACE_INFO
[<0>] os_acquire_rwlock_read+0x35/0x40 [nvidia] [<0>] portSyncRwLockAcquireRead+0x26/0x90 [nvidia] [<0>] rmapiLockAcquire+0x29c/0x300 [nvidia] [<0>] RmGssLegacyRpcCmd+0x6b/0x2a0 [nvidia] [<0>] _nv04ControlWithSecInfo+0x47/0xa0 [nvidia] [<0>] RmIoctl+0x64b/0xf10 [nvidia] [<0>] rm_ioctl+0x49/0x70 [nvidia] [<0>] nvidia_unlocked_ioctl+0x7ee/0xa20 [nvidia] [<0>] do_vfs_ioctl+0x407/0x670 [<0>] ksys_ioctl+0x67/0x90 [<0>] __x64_sys_ioctl+0x1a/0x20 [<0>] do_syscall_64+0x57/0x190 [<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Beta Was this translation helpful? Give feedback.
All reactions