Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: fix klockstat when DEBUG_LOCK_ALLOC is set
When DEBUG_LOCK_ALLOC is set, mutex_lock is changed to mutex_lock_nested, which means that attaching the kprobe statically to mutex_lock won't work for all kernel configurations. This change detects the available kprobe functions exposed by the kernel and ensures that the kprobe is attached correctly. Fixes iovisor#3882
- Loading branch information