Leo Yan
5dfed1be0e
locking/lockdep: Correct calling tracepoints
[ Upstream commit 89e70d5c583c55088faa2201d397ee30a15704aa ]
The commit eb1f00237a
("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: eb1f00237a
("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.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-26 12:06:50 +02:00
..
2019-06-17 12:28:09 +02:00
2019-04-10 10:56:05 +02:00
2019-06-03 12:32:56 +02:00
2020-10-09 08:53:08 +02:00
2020-07-25 21:47:42 +02:00
2017-08-10 12:29:03 +02:00
2021-05-26 12:06:50 +02:00
2020-08-24 18:45:32 -07:00
2020-03-21 09:41:16 +01:00
2018-04-27 09:48:49 +02:00
2020-03-21 16:00:24 +01:00
2017-11-02 11:10:55 +01:00
2021-04-07 15:00:06 +02:00
2019-08-08 09:09:25 +02:00
2020-06-29 12:04:48 -07:00
2020-09-16 16:26:56 +02:00
2021-04-28 13:40:00 +02:00
2019-09-25 10:22:37 +02:00
2019-05-30 11:26:37 -07:00
2020-07-08 16:21:57 -04:00
2021-01-30 13:55:17 +01:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2021-01-30 13:55:17 +01:00
2017-11-02 11:10:55 +01:00
2021-01-09 13:46:24 +01:00
2020-02-11 13:10:56 +01:00
2019-06-05 17:37:17 +02:00
2020-03-21 16:00:24 +01:00
2019-04-08 11:59:39 +01:00
2019-05-21 11:28:40 +02:00