Skip to content

Commit 7fb20f9

Browse files
alan-maguireborkmann
authored andcommitted
bpf, doc: Remove references to warning message when using bpf_trace_printk()
The BPF helper bpf_trace_printk() no longer uses trace_printk(); it is now triggers a dedicated trace event. Hence the described warning is no longer present, so remove the discussion of it as it may confuse people. Fixes: ac5a72e ("bpf: Use dedicated bpf_trace_printk event instead of trace_printk()") Signed-off-by: Alan Maguire <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 929e54a commit 7fb20f9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Documentation/bpf/bpf_design_QA.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,6 @@ program is loaded the kernel will print warning message, so
246246
this helper is only useful for experiments and prototypes.
247247
Tracing BPF programs are root only.
248248

249-
Q: bpf_trace_printk() helper warning
250-
------------------------------------
251-
Q: When bpf_trace_printk() helper is used the kernel prints nasty
252-
warning message. Why is that?
253-
254-
A: This is done to nudge program authors into better interfaces when
255-
programs need to pass data to user space. Like bpf_perf_event_output()
256-
can be used to efficiently stream data via perf ring buffer.
257-
BPF maps can be used for asynchronous data sharing between kernel
258-
and user space. bpf_trace_printk() should only be used for debugging.
259-
260249
Q: New functionality via kernel modules?
261250
----------------------------------------
262251
Q: Can BPF functionality such as new program or map types, new

0 commit comments

Comments
 (0)