Commit 87d27cf4 authored by Teng Qin's avatar Teng Qin Committed by 4ast

Fix Tracepoint example (#809)

parent 7a68964a
......@@ -38,7 +38,7 @@ int printarg(struct urandom_read_args *args) {
# load BPF program
b = BPF(text=bpf_text)
b.attach_tracepoint("random:urandom_read", "printarg")
b.attach_tracepoint(tp="random:urandom_read", fn_name="printarg")
# header
print("%-18s %-16s %-6s %s" % ("TIME(s)", "COMM", "PID", "GOTBITS"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment