samples/bpf: add tests for more perf event types
[linux-2.6-block.git] / samples / bpf / bpf_helpers.h
index 9a9c95f2c9fb3a7de27eb70659429418ada04301..51e567bc70fce27b7ec2b9f0f3cf48ac03d2e2ac 100644 (file)
@@ -31,7 +31,8 @@ static unsigned long long (*bpf_get_current_uid_gid)(void) =
        (void *) BPF_FUNC_get_current_uid_gid;
 static int (*bpf_get_current_comm)(void *buf, int buf_size) =
        (void *) BPF_FUNC_get_current_comm;
-static int (*bpf_perf_event_read)(void *map, int index) =
+static unsigned long long (*bpf_perf_event_read)(void *map,
+                                                unsigned long long flags) =
        (void *) BPF_FUNC_perf_event_read;
 static int (*bpf_clone_redirect)(void *ctx, int ifindex, int flags) =
        (void *) BPF_FUNC_clone_redirect;