xref: /openbmc/linux/arch/arm64/Kconfig.debug (revision 82df5b73)
1# SPDX-License-Identifier: GPL-2.0-only
2
3config PID_IN_CONTEXTIDR
4	bool "Write the current PID to the CONTEXTIDR register"
5	help
6	  Enabling this option causes the kernel to write the current PID to
7	  the CONTEXTIDR register, at the expense of some additional
8	  instructions during context switch. Say Y here only if you are
9	  planning to use hardware trace tools with this kernel.
10
11config ARM64_RANDOMIZE_TEXT_OFFSET
12	bool "Randomize TEXT_OFFSET at build time"
13	help
14	  Say Y here if you want the image load offset (AKA TEXT_OFFSET)
15	  of the kernel to be randomized at build-time. When selected,
16	  this option will cause TEXT_OFFSET to be randomized upon any
17	  build of the kernel, and the offset will be reflected in the
18	  text_offset field of the resulting Image. This can be used to
19	  fuzz-test bootloaders which respect text_offset.
20
21	  This option is intended for bootloader and/or kernel testing
22	  only. Bootloaders must make no assumptions regarding the value
23	  of TEXT_OFFSET and platforms must not require a specific
24	  value.
25
26config DEBUG_EFI
27	depends on EFI && DEBUG_INFO
28	bool "UEFI debugging"
29	help
30	  Enable this option to include EFI specific debugging features into
31	  the kernel that are only useful when using a debug build of the
32	  UEFI firmware
33
34config ARM64_RELOC_TEST
35	depends on m
36	tristate "Relocation testing module"
37
38source "drivers/hwtracing/coresight/Kconfig"
39