]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - samples/bpf/bpf_helpers.h
samples/bpf: add perf_event+bpf example
[mirror_ubuntu-bionic-kernel.git] / samples / bpf / bpf_helpers.h
index bbdf62a1e45ed25e37006d5c7873fa41e532d40a..90f44bd2045e16f5dd78ed842381d25a06fffa82 100644 (file)
@@ -55,6 +55,8 @@ static int (*bpf_skb_get_tunnel_opt)(void *ctx, void *md, int size) =
        (void *) BPF_FUNC_skb_get_tunnel_opt;
 static int (*bpf_skb_set_tunnel_opt)(void *ctx, void *md, int size) =
        (void *) BPF_FUNC_skb_set_tunnel_opt;
+static unsigned long long (*bpf_get_prandom_u32)(void) =
+       (void *) BPF_FUNC_get_prandom_u32;
 
 /* llvm builtin functions that eBPF C program may use to
  * emit BPF_LD_ABS and BPF_LD_IND instructions