Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebieder...
[sfrench/cifs-2.6.git] / samples / bpf / tracex2_kern.c
index 6d6eefd0d4655ed3bdcebe6bf1956a7f43a70d27..5e11c20ce5ecd9558c4a01f34ad7f994e3418809 100644 (file)
@@ -66,7 +66,7 @@ struct hist_key {
        char comm[16];
        u64 pid_tgid;
        u64 uid_gid;
-       u32 index;
+       u64 index;
 };
 
 struct bpf_map_def SEC("maps") my_hist_map = {
@@ -82,7 +82,7 @@ int bpf_prog3(struct pt_regs *ctx)
        long write_size = PT_REGS_PARM3(ctx);
        long init_val = 1;
        long *value;
-       struct hist_key key = {};
+       struct hist_key key;
 
        key.index = log2l(write_size);
        key.pid_tgid = bpf_get_current_pid_tgid();