Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scripts/gdb: add documentation example for radix tree

Provide a worked example for utilising the lx_radix_tree_lookup function

Link: http://lkml.kernel.org/r/e786008ac5aec4b84198812805b326d718bdeb4b.1462865983.git.jan.kiszka@siemens.com
Signed-off-by: Kieran Bingham <kieran.bingham@linaro.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kieran Bingham and committed by
Linus Torvalds
9b558035 e127a73d

+21
+21
Documentation/gdb-kernel-debugging.txt
··· 139 139 start_comm = "swapper/2\000\000\000\000\000\000" 140 140 } 141 141 142 + o Dig into a radix tree data structure, such as the IRQ descriptors: 143 + (gdb) print (struct irq_desc)$lx_radix_tree_lookup(irq_desc_tree, 18) 144 + $6 = { 145 + irq_common_data = { 146 + state_use_accessors = 67584, 147 + handler_data = 0x0 <__vectors_start>, 148 + msi_desc = 0x0 <__vectors_start>, 149 + affinity = {{ 150 + bits = {65535} 151 + }} 152 + }, 153 + irq_data = { 154 + mask = 0, 155 + irq = 18, 156 + hwirq = 27, 157 + common = 0xee803d80, 158 + chip = 0xc0eb0854 <gic_data>, 159 + domain = 0xee808000, 160 + parent_data = 0x0 <__vectors_start>, 161 + chip_data = 0xc0eb0854 <gic_data> 162 + } <... trimmed ...> 142 163 143 164 List of commands and functions 144 165 ------------------------------