I want to switch on CONFIG_CONTEXT_TRACKING, I am able to find this config with a search in menuconfig but not able to turn it on. I am also having difficulty in understanding the config options that CONTEXT_TRACKING depends on. Can someone tell me step by step how to switch on this config?
1 Answer
You need to compile your own Linux kernel.
CONTEXT_TRACKING is an automatic setting, which is enabled if VIRT_CPU_ACCOUNTING_GEN is selected.
VIRT_CPU_ACCOUNTING_GEN is available under “General setup”, “CPU/Task time and stats accounting”, “Cputime accounting”, “Full dynticks CPU time accounting”. You can find this out by typing / and searching for VIRT_CPU_ACCOUNTING_GEN in make menuconfig:
Selecting this option, which is only possible on architectures with support for CONTEXT_TRACKING, will automatically enable CONTEXT_TRACKING:
The availability of VIRT_CPU_ACCOUNTING_GEN depends on all of the following:
HAVE_CONTEXT_TRACKING(automatically set on ARM, ARM64, MIPS, 64-bit PowerPC, 64-bit SPARC, 64-bit x86)HAVE_VIRT_CPU_ACCOUNTING_GEN(indicates support for 64-bitcputime_t; automatically set on 64-bit architectures and architectures where the appropriate locking has been implemented, i.e. ARM and non-SMP MIPS)GENERIC_CLOCKEVENTS(automatically set on architectures supporting generic clock events, i.e. everything but Itanium)


VIRT_CPU_ACCOUNTING_GEN). If you search for it with the/key inmake menuconfigit will tell the whole path to the option.