OSDN Git Service

locking/lockdep: Display irq_context names in /proc/lockdep_chains
authorWaiman Long <longman@redhat.com>
Thu, 6 Feb 2020 15:24:04 +0000 (10:24 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Feb 2020 12:10:48 +0000 (13:10 +0100)
commitb9875e9882295749a14b31e16dd504ae904cf070
tree2abe4142ce079796aa61be4a618cdb54e3134745
parentb3b9c187dc2544923a601733a85352b9ddaba9b3
locking/lockdep: Display irq_context names in /proc/lockdep_chains

Currently, the irq_context field of a lock chains displayed in
/proc/lockdep_chains is just a number. It is likely that many people
may not know what a non-zero number means. To make the information more
useful, print the actual irq names ("softirq" and "hardirq") instead.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20200206152408.24165-3-longman@redhat.com
kernel/locking/lockdep_proc.c