Build register_ftrace_direct() example

modulename: ftrace-direct.ko

and/or

ftrace-direct-too.ko

and/or

ftrace-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.

source code: