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

Configure Feed

Select the types of activity you want to include in your feed.

scripts/gdb: change kernel config dumping method

MAGIC_START("IKCFG_ST") and MAGIC_END("IKCFG_ED") are moved out
from the kernel_config_data variable.

Thus, we parse kernel_config_data directly instead of considering
offset of MAGIC_START and MAGIC_END.

Fixes: 13610aa908dc ("kernel/configs: use .incbin directive to embed config_data.gz")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Kuan-Ying Lee and committed by
Masahiro Yamada
1f7a6cf6 da4288b9

+3 -3
+3 -3
scripts/gdb/linux/config.py
··· 24 24 filename = arg 25 25 26 26 try: 27 - py_config_ptr = gdb.parse_and_eval("kernel_config_data + 8") 28 - py_config_size = gdb.parse_and_eval( 29 - "sizeof(kernel_config_data) - 1 - 8 * 2") 27 + py_config_ptr = gdb.parse_and_eval("&kernel_config_data") 28 + py_config_ptr_end = gdb.parse_and_eval("&kernel_config_data_end") 29 + py_config_size = py_config_ptr_end - py_config_ptr 30 30 except gdb.error as e: 31 31 raise gdb.GdbError("Can't find config, enable CONFIG_IKCONFIG?") 32 32