Trace process context switches

modulename: trace_sched_switch.ko

configname: CONFIG_CONTEXT_SWITCH_TRACER

Linux Kernel Configuration
└─>Trace process context switches
In linux kernel since version 2.6.27 (release Date: 2008-10-09)  
This tracer gets called from the context switch and records
all switching of tasks.

source code:
selects
CONFIG_TRACING
CONFIG_MARKERS