locking/lockdep: Fix lockdep_stats indentation problem
Waiman Long
reviewerPATCH 1/1 locking/lockdep: Fix lockdep_stats indentation problem
It was found that two lines in the output of /proc/lockdep_stats have indentation problem:
# cat /proc/lockdep_stats
:
in-process chains: 25057
stack-trace entries: 137827 [max: 524288]
number of stack traces: 7973
number of stack hash chains: 6355
combined max dependencies: 1356414598
hardirq-safe locks: 57
hardirq-unsafe locks: 1286
:All the numbers displayed in /proc/lockdep_stats except the two stack trace numbers are formatted with a field with of 11. To properly align all the numbers, a field width of 11 is now added to the two stack trace numbers.
--- kernel/locking/lockdep_proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/locking/lockdep_proc.c +2 -2
@@ -286,9 +286,9 @@ static int lockdep_stats_show(struct seq_file *m, void *v)seq_printf (m," stack-trace entries: %11lu [max: %lu]\n" , nr_stack_trace_entries,MAX_STACK_TRACE_ENTRIES );#if defined(CONFIG_TRACE_IRQFLAGS ) && defined(CONFIG_PROVE_LOCKING ) -seq_printf (m," number of stack traces: %llu\n" , +seq_printf (m," number of stack traces: %11llu\n" ,lockdep_stack_trace_count ()); -seq_printf (m," number of stack hash chains: %llu\n" , +seq_printf (m," number of stack hash chains: %11llu\n" ,lockdep_stack_hash_count ());#endif seq_printf(m, " combined max dependencies: %11u\n",
Signature · 1 line
2.18.1
Quoted 2 lines · Waiman Long
It was found that two lines in the output of
/proc/lockdep_statshave indentation problem:
The following commit has been merged into the locking/core branch of tip:
The following commit has been merged into the locking/core branch of tip:
Commit-ID: a030f9767da1a6bbcec840fc54770eb11c2414b6 Gitweb: https://git.kernel.org/tip/a030f9767da1a6bbcec840fc54770eb11c2414b6 Author: Waiman Long <[email protected]> AuthorDate: Wed, 11 Dec 2019 16:31:39 -05:00 Committer: Peter Zijlstra <[email protected]> CommitterDate: Fri, 17 Jan 2020 10:19:30 +01:00
locking/lockdep: Fix lockdep_stats indentation problem
It was found that two lines in the output of /proc/lockdep_stats have indentation problem:
# cat /proc/lockdep_stats
:
in-process chains: 25057
stack-trace entries: 137827 [max: 524288]
number of stack traces: 7973
number of stack hash chains: 6355
combined max dependencies: 1356414598
hardirq-safe locks: 57
hardirq-unsafe locks: 1286
:All the numbers displayed in /proc/lockdep_stats except the two stack trace numbers are formatted with a field with of 11. To properly align all the numbers, a field width of 11 is now added to the two stack trace numbers.
--- kernel/locking/lockdep_proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/locking/lockdep_proc.c +2 -2
@@ -286,9 +286,9 @@ static int lockdep_stats_show(struct seq_file *m, void *v)seq_printf (m," stack-trace entries: %11lu [max: %lu]\n" , nr_stack_trace_entries,MAX_STACK_TRACE_ENTRIES );#if defined(CONFIG_TRACE_IRQFLAGS ) && defined(CONFIG_PROVE_LOCKING ) -seq_printf (m," number of stack traces: %llu\n" , +seq_printf (m," number of stack traces: %11llu\n" ,lockdep_stack_trace_count ()); -seq_printf (m," number of stack hash chains: %llu\n" , +seq_printf (m," number of stack hash chains: %11llu\n" ,lockdep_stack_hash_count ());#endif seq_printf(m, " combined max dependencies: %11u\n",