ftrace: Support long jump for ftrace direct call
时间: 2024-05-23 09:13:27 浏览: 86
Ftrace is a tracing framework in the Linux kernel that allows you to trace kernel function calls and events. One way to use ftrace is through direct function calls, where you call a function provided by ftrace to enable or disable tracing for a particular function or set of functions.
The "long jump" support for ftrace direct call refers to the ability to jump to a different location in the code from where the function was called. This is useful in certain cases where you need to jump over a section of code that you don't want to trace, or if you want to skip over an error condition and continue tracing from a different point in the code.
With long jump support, you can now use the setjmp() and longjmp() functions to jump to a different location in the code from where the ftrace direct call was made. This is a powerful feature that gives you more control over how you trace your code and what parts of it you want to exclude from tracing.
阅读全文