Skip to content

Commit

Permalink
Fix Tracepoint example (iovisor#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmtenor authored and 4ast committed Nov 11, 2016
1 parent 7a68964 commit 87d27cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tracing/urandomread-explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# 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"))
Expand Down

0 comments on commit 87d27cf

Please sign in to comment.