Commit 0823f564 authored by Brendan Gregg's avatar Brendan Gregg

improve comments for prime example

parent 8d70a881
...@@ -22,10 +22,11 @@ b = BPF(src_file = "bitehist.c") ...@@ -22,10 +22,11 @@ b = BPF(src_file = "bitehist.c")
# header # header
print("Tracing... Hit Ctrl-C to end.") print("Tracing... Hit Ctrl-C to end.")
# output # trace until Ctrl-C
try: try:
sleep(99999999) sleep(99999999)
except KeyboardInterrupt: except KeyboardInterrupt:
print print
# output
b["dist"].print_log2_hist("kbytes") b["dist"].print_log2_hist("kbytes")
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