1TRACE_PUTS(9)                    Driver Basics                   TRACE_PUTS(9)
2
3
4

NAME

6       trace_puts - write a string into the ftrace buffer
7

SYNOPSIS

9       trace_puts(str);
10

ARGUMENTS

12       str
13           the string to record
14

NOTE

16       __trace_bputs is an internal function for trace_puts and the ip is
17       passed in via the trace_puts macro.
18
19       This is similar to trace_printk but is made for those really fast paths
20       that a developer wants the least amount of “Heisenbug” affects, where
21       the processing of the print format is still too much.
22
23       This function allows a kernel developer to debug fast path sections
24       that printk is not appropriate for. By scattering in various printk
25       like tracing in the code, a developer can quickly see where problems
26       are occurring.
27
28       This is intended as a debugging tool for the developer only. Please
29       refrain from leaving trace_puts scattered around in your code. (Extra
30       memory is used for special buffers that are allocated when trace_puts
31       is used)
32

RETURNS

34       0 if nothing was written, positive # if string was. (1 when
35       __trace_bputs is used, strlen(str) when __trace_puts is used)
36
38Kernel Hackers Manual 3.10         June 2019                     TRACE_PUTS(9)
Impressum