# load BPF program
b = BPF(src_file = "bitehist.c")
BPF.attach_kprobe(b.load_func("do_request", BPF.KPROBE), "blk_start_request")
-dist = b.get_table("dist", c_int, c_ulonglong)
+dist = b.get_table("dist")
dist_max = 64
# header
b = BPF(src_file = "vfsreadlat.c")
BPF.attach_kprobe(b.load_func("do_entry", BPF.KPROBE), "vfs_read")
BPF.attach_kretprobe(b.load_func("do_return", BPF.KPROBE), "vfs_read")
-dist = b.get_table("dist", c_int, c_ulonglong)
+dist = b.get_table("dist")
dist_max = 64
# header
# 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
BPF.attach_kprobe(b.load_func("do_fsync", BPF.KPROBE), "vfs_fsync")
BPF.attach_kprobe(b.load_func("do_open", BPF.KPROBE), "vfs_open")
BPF.attach_kprobe(b.load_func("do_create", BPF.KPROBE), "vfs_create")
-stats = b.get_table("stats", c_int, c_ulonglong)
+stats = b.get_table("stats")
# stat column labels and indexes
stat_types = {