Skip to content
  • Peter Wu's avatar
    bpf: clarify when bpf_trace_printk discards lines · 55c33dfb
    Peter Wu authored
    
    
    I opened /sys/kernel/tracing/trace once and kept reading from it.
    bpf_trace_printk somehow did not seem to work, no entries were appended
    to that trace file. It turns out that tracing is disabled when that file
    is open. Save the next person some time and document this.
    
    The trace file is described in Documentation/trace/ftrace.rst, however
    the implication "tracing is disabled" did not immediate translate to
    "bpf_trace_printk silently discards entries".
    
    Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    55c33dfb