Commit 665c5b03 authored by Brendan Gregg's avatar Brendan Gregg

variable name typo

parent 5cbcde20
...@@ -28,4 +28,4 @@ try: ...@@ -28,4 +28,4 @@ try:
except KeyboardInterrupt: except KeyboardInterrupt:
print print
b["dist"].print_log2_hist() b["dist"].print_log2_hist("kbytes")
...@@ -6,7 +6,7 @@ A summary is printed after Ctrl-C is hit. ...@@ -6,7 +6,7 @@ A summary is printed after Ctrl-C is hit.
# ./bitehist.py # ./bitehist.py
Tracing... Hit Ctrl-C to end. Tracing... Hit Ctrl-C to end.
^C ^C
value : count distribution kbytes : count distribution
0 -> 1 : 3 | | 0 -> 1 : 3 | |
2 -> 3 : 0 | | 2 -> 3 : 0 | |
4 -> 7 : 211 |********** | 4 -> 7 : 211 |********** |
......
...@@ -89,7 +89,7 @@ start_ts = 0 ...@@ -89,7 +89,7 @@ start_ts = 0
# format output # format output
while 1: while 1:
(task, pid, cpu, flags, ts, msg) = b.trace_fields() (task, pid, cpu, flags, ts, msg) = b.trace_fields()
(filenamp, ret_s) = msg.split(" ") (filename, ret_s) = msg.split(" ")
ret = int(ret_s) ret = int(ret_s)
if (args.failed and (ret >= 0)): if (args.failed and (ret >= 0)):
...@@ -106,4 +106,4 @@ while 1: ...@@ -106,4 +106,4 @@ while 1:
if start_ts == 0: if start_ts == 0:
start_ts = ts start_ts = ts
print("%-14.9f" % (ts - start_ts), end="") print("%-14.9f" % (ts - start_ts), end="")
print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filenamp)) print("%-6d %-16s %4s %3s %s" % (pid, task, fd_s, err, filename))
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