samples/bpf: example of get selected PMU counter value
[firefly-linux-kernel-4.4.55.git] / samples / bpf / bpf_helpers.h
index c77c872fe8ee477c7cfabf5fd539824fc676b173..3a44d3a272af40119b379fe1930244909499fd8d 100644 (file)
@@ -31,6 +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) =
+       (void *) BPF_FUNC_perf_event_read;
 
 /* llvm builtin functions that eBPF C program may use to
  * emit BPF_LD_ABS and BPF_LD_IND instructions