• Home
  • Raw
  • Download

Lines Matching +full:in +full:- +full:functions

2 Using ftrace to hook to functions
16 beginning of functions in order to record and trace the flow of the kernel.
48 .. code-block:: c
77 no longer being called by functions after the unregister_ftrace_function()
87 .. code-block:: c
106 flags are set in the ftrace_ops structure, then this will be pointing
115 The ftrace_ops flags are all defined and documented in include/linux/ftrace.h.
146 itself or any nested functions that those functions call.
156 kernel patches uses. Without this flag the pt_regs->ip can not be
163 If this is set, then the callback will only be called by functions
182 Filtering which functions to trace
185 If a callback is only to be called from specific functions, a filter must be
188 .. code-block:: c
202 Non-zero to reset all filters before applying this filter.
204 Filters denote which functions should be enabled when tracing is enabled.
205 If @buf is NULL and reset is set, all functions will be enabled for tracing.
207 The @buf can also be a glob expression to enable all functions that
210 See Filter Commands in :file:`Documentation/trace/ftrace.rst`.
214 .. code-block:: c
218 To add more functions, call the ftrace_set_filter() more than once with the
220 with new functions defined by @buf, have @reset be non-zero.
222 To remove all the filtered functions and trace all functions:
224 .. code-block:: c
230 function in this case, ftrace_set_filter_ip() can be used.
232 .. code-block:: c
237 located in the function. This function is used by perf and kprobes that
240 If a glob is used to set the filter, functions can be added to a "notrace"
241 list that will prevent those functions from calling the callback.
243 two lists are non-empty and contain the same functions, the callback will not
246 An empty "notrace" list means to allow all functions defined by the filter
249 .. code-block:: c
255 functions it finds to not be traced. This is a separate list from the
258 A non-zero @reset will clear the "notrace" list before adding functions
263 .. code-block:: c
268 functions should call the callback, it is best to set the filters before
272 If a filter is in place, and the @reset is non-zero, and @buf contains a
273 matching glob to functions, the switch will happen during the time of
274 the ftrace_set_filter() call. At no time will all functions call the callback.
276 .. code-block:: c
288 .. code-block:: c
300 As the latter will have a short time where all functions will call