commit | ef4e1fc79f8aa289d29e9ab1bae0176227ace9cb | [log] [tgz] |
---|---|---|
author | Brendan Gregg <brendan.d.gregg@gmail.com> | Tue Aug 18 15:34:56 2015 -0700 |
committer | Brendan Gregg <brendan.d.gregg@gmail.com> | Tue Aug 18 15:34:56 2015 -0700 |
tree | 5566d1d7bbcb81927db16e15b3553939bfa0115c | |
parent | 68abbeca9e9ad8e55a98c6302d5180e8db9e880f [diff] [blame] |
cleaner get_table calls
diff --git a/tools/pidpersec b/tools/pidpersec index b84fbe6..e4c6940 100755 --- a/tools/pidpersec +++ b/tools/pidpersec
@@ -19,7 +19,7 @@ # load BPF program b = BPF(src_file = "pidpersec.c") BPF.attach_kprobe(b.load_func("do_count", BPF.KPROBE), "sched_fork") -stats = b.get_table("stats", c_int, c_ulonglong) +stats = b.get_table("stats") # stat indexes S_COUNT = 1