Build register_ftrace_direct() example
modulename: ftrace-direct.ko
and/orftrace-direct-too.ko
and/orftrace-direct-modify.ko
configname: CONFIG_SAMPLE_FTRACE_DIRECT
Linux Kernel Configuration
└─>Kernel hacking
└─>Sample kernel code
└─>Build register_ftrace_direct() example
In linux kernel since version 4.14.326 (release Date: 2023-09-23)
This builds an ftrace direct function example
that hooks to wake_up_process and prints the parameters.
that hooks to wake_up_process and prints the parameters.
source code:
depends
CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLSCONFIG_HAVE_SAMPLE_FTRACE_DIRECT
CONFIG_MODULES
CONFIG_SAMPLES