#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
-__s64 total; /* total cache accesses without counting dirties */
-__s64 misses; /* total of add to lru because of read misses */
-__u64 mbd; /* total of mark_buffer_dirty events */
+__s64 total = 0; /* total cache accesses without counting dirties */
+__s64 misses = 0; /* total of add to lru because of read misses */
+__u64 mbd = 0; /* total of mark_buffer_dirty events */
SEC("fentry/add_to_page_cache_lru")
int BPF_PROG(add_to_page_cache_lru)
#include "funclatency.h"
#include "bits.bpf.h"
-const volatile pid_t targ_tgid;
-const volatile int units;
+const volatile pid_t targ_tgid = 0;
+const volatile int units = 0;
/* key: pid. value: start time */
struct {
__type(value, u64);
} starts SEC(".maps");
-__u32 hist[MAX_SLOTS];
+__u32 hist[MAX_SLOTS] = {};
SEC("kprobe/dummy_kprobe")
int BPF_KPROBE(dummy_kprobe)