Commit 6321d00a authored by Brendan Gregg's avatar Brendan Gregg

update comments

parent 6f075b93
...@@ -59,12 +59,13 @@ b = BPF(text=""" ...@@ -59,12 +59,13 @@ b = BPF(text="""
#include <uapi/linux/ptrace.h> #include <uapi/linux/ptrace.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
// a value of one map, and a key for another: // for saving process info by request
struct who_t { struct who_t {
u32 pid; u32 pid;
char name[TASK_COMM_LEN]; char name[TASK_COMM_LEN];
}; };
// the key for the output summary
struct info_t { struct info_t {
u32 pid; u32 pid;
int type; int type;
...@@ -73,6 +74,7 @@ struct info_t { ...@@ -73,6 +74,7 @@ struct info_t {
char name[TASK_COMM_LEN]; char name[TASK_COMM_LEN];
}; };
// the value of the output summary
struct val_t { struct val_t {
u64 bytes; u64 bytes;
u64 us; u64 us;
......
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