Skip to content

Commit 88a79e8

Browse files
Carlos Llamasfbq
authored andcommitted
lockdep: Clarify size for LOCKDEP_*_BITS configs
The LOCKDEP_*_BITS configs control the size of internal structures used by lockdep. The size is calculated as a power of two of the configured value (e.g. 16 => 64KB). Update these descriptions to more accurately reflect this, as "Bitsize" can be misleading. Suggested-by: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Carlos Llamas <cmllamas@google.com> Acked-by: Waiman Long <longman@redhat.com> Signed-off-by: Boqun Feng <boqun.feng@gmail.com> Link: https://lore.kernel.org/r/20241024183631.643450-3-cmllamas@google.com
1 parent e638072 commit 88a79e8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/Kconfig.debug

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,39 +1502,39 @@ config LOCKDEP_SMALL
15021502
bool
15031503

15041504
config LOCKDEP_BITS
1505-
int "Bitsize for MAX_LOCKDEP_ENTRIES"
1505+
int "Size for MAX_LOCKDEP_ENTRIES (as Nth power of 2)"
15061506
depends on LOCKDEP && !LOCKDEP_SMALL
15071507
range 10 24
15081508
default 15
15091509
help
15101510
Try increasing this value if you hit "BUG: MAX_LOCKDEP_ENTRIES too low!" message.
15111511

15121512
config LOCKDEP_CHAINS_BITS
1513-
int "Bitsize for MAX_LOCKDEP_CHAINS"
1513+
int "Size for MAX_LOCKDEP_CHAINS (as Nth power of 2)"
15141514
depends on LOCKDEP && !LOCKDEP_SMALL
15151515
range 10 21
15161516
default 16
15171517
help
15181518
Try increasing this value if you hit "BUG: MAX_LOCKDEP_CHAINS too low!" message.
15191519

15201520
config LOCKDEP_STACK_TRACE_BITS
1521-
int "Bitsize for MAX_STACK_TRACE_ENTRIES"
1521+
int "Size for MAX_STACK_TRACE_ENTRIES (as Nth power of 2)"
15221522
depends on LOCKDEP && !LOCKDEP_SMALL
15231523
range 10 26
15241524
default 19
15251525
help
15261526
Try increasing this value if you hit "BUG: MAX_STACK_TRACE_ENTRIES too low!" message.
15271527

15281528
config LOCKDEP_STACK_TRACE_HASH_BITS
1529-
int "Bitsize for STACK_TRACE_HASH_SIZE"
1529+
int "Size for STACK_TRACE_HASH_SIZE (as Nth power of 2)"
15301530
depends on LOCKDEP && !LOCKDEP_SMALL
15311531
range 10 26
15321532
default 14
15331533
help
15341534
Try increasing this value if you need large STACK_TRACE_HASH_SIZE.
15351535

15361536
config LOCKDEP_CIRCULAR_QUEUE_BITS
1537-
int "Bitsize for elements in circular_queue struct"
1537+
int "Size for elements in circular_queue struct (as Nth power of 2)"
15381538
depends on LOCKDEP
15391539
range 10 26
15401540
default 12

0 commit comments

Comments
 (0)