Commit 89e70d5
locking/lockdep: Correct calling tracepoints
The commit eb1f002 ("lockdep,trace: Expose tracepoints") reverses
tracepoints for lock_contended() and lock_acquired(), thus the ftrace
log shows the wrong locking sequence that "acquired" event is prior to
"contended" event:
<idle>-0 [001] d.s3 20803.501685: lock_acquire: 0000000008b91ab4 &sg_policy->update_lock
<idle>-0 [001] d.s3 20803.501686: lock_acquired: 0000000008b91ab4 &sg_policy->update_lock
<idle>-0 [001] d.s3 20803.501689: lock_contended: 0000000008b91ab4 &sg_policy->update_lock
<idle>-0 [001] d.s3 20803.501690: lock_release: 0000000008b91ab4 &sg_policy->update_lock
This patch fixes calling tracepoints for lock_contended() and
lock_acquired().
Fixes: eb1f002 ("lockdep,trace: Expose tracepoints")
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210512120937.90211-1-leo.yan@linaro.org1 parent d07f6ca commit 89e70d5
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5736 | 5736 | | |
5737 | 5737 | | |
5738 | 5738 | | |
5739 | | - | |
| 5739 | + | |
5740 | 5740 | | |
5741 | 5741 | | |
5742 | 5742 | | |
| |||
5754 | 5754 | | |
5755 | 5755 | | |
5756 | 5756 | | |
5757 | | - | |
| 5757 | + | |
5758 | 5758 | | |
5759 | 5759 | | |
5760 | 5760 | | |
| |||
0 commit comments