From 6321d00a975bb94716aa8435fa026a7612c2a73d Mon Sep 17 00:00:00 2001 From: Brendan Gregg Date: Sun, 7 Feb 2016 00:54:44 -0800 Subject: [PATCH] update comments --- tools/biotop.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/biotop.py b/tools/biotop.py index c26572a..51ecd09 100755 --- a/tools/biotop.py +++ b/tools/biotop.py @@ -59,12 +59,13 @@ b = BPF(text=""" #include #include -// 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; -- 2.7.4