projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f075b9
)
update comments
author
Brendan Gregg
<brendan.d.gregg@gmail.com>
Sun, 7 Feb 2016 08:54:44 +0000
(
00:54
-0800)
committer
Brendan Gregg
<brendan.d.gregg@gmail.com>
Sun, 7 Feb 2016 08:54:44 +0000
(
00:54
-0800)
tools/biotop.py
patch
|
blob
|
history
diff --git
a/tools/biotop.py
b/tools/biotop.py
index
c26572a
..
51ecd09
100755
(executable)
--- a/
tools/biotop.py
+++ b/
tools/biotop.py
@@
-59,12
+59,13
@@
b = BPF(text="""
#include <uapi/linux/ptrace.h>
#include <linux/blkdev.h>
-//
a value of one map, and a key for another:
+//
for saving process info by request
struct who_t {
u32 pid;
char name[TASK_COMM_LEN];
};
+// the key for the output summary
struct info_t {
u32 pid;
int type;
@@
-73,6
+74,7
@@
struct info_t {
char name[TASK_COMM_LEN];
};
+// the value of the output summary
struct val_t {
u64 bytes;
u64 us;