samples/bpf: offwaketime example
[linux-2.6-block.git] / samples / bpf / bpf_helpers.h
index 7ad19e1dbaf45fc6f1951a896c2ebdb427ae6805..811bcca0f29dafe553beefef6303f16a9dd8b71b 100644 (file)
@@ -39,6 +39,8 @@ static int (*bpf_redirect)(int ifindex, int flags) =
        (void *) BPF_FUNC_redirect;
 static int (*bpf_perf_event_output)(void *ctx, void *map, int index, void *data, int size) =
        (void *) BPF_FUNC_perf_event_output;
+static int (*bpf_get_stackid)(void *ctx, void *map, int flags) =
+       (void *) BPF_FUNC_get_stackid;
 
 /* llvm builtin functions that eBPF C program may use to
  * emit BPF_LD_ABS and BPF_LD_IND instructions