Commit f6e92c97 authored by Brendan Gregg's avatar Brendan Gregg

nits

parent 6497a84e
...@@ -19,7 +19,7 @@ bpf_text = """ ...@@ -19,7 +19,7 @@ bpf_text = """
#include <uapi/linux/ptrace.h> #include <uapi/linux/ptrace.h>
#include <linux/blkdev.h> #include <linux/blkdev.h>
struct proc_key_t { struct proc_key_t {
char name[TASK_COMM_LEN]; char name[TASK_COMM_LEN];
u64 slot; u64 slot;
}; };
...@@ -41,12 +41,12 @@ int trace_pid_start(struct pt_regs *ctx, struct request *req) ...@@ -41,12 +41,12 @@ int trace_pid_start(struct pt_regs *ctx, struct request *req)
return 0; return 0;
} }
int do_count (struct pt_regs *ctx, struct request *req) int do_count(struct pt_regs *ctx, struct request *req)
{ {
struct val_t *valp; struct val_t *valp;
valp = commbyreq.lookup(&req); valp = commbyreq.lookup(&req);
if (valp == 0) { if (valp == 0) {
return 0; return 0;
} }
......
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