Commit 0519650c authored by Omar Sandoval's avatar Omar Sandoval Committed by 4ast

Add bpf_get_current_task() helper definition (#650)

Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
parent ec615afd
...@@ -175,6 +175,8 @@ static int (*bpf_perf_event_output)(void *ctx, void *map, u32 index, void *data, ...@@ -175,6 +175,8 @@ static int (*bpf_perf_event_output)(void *ctx, void *map, u32 index, void *data,
(void *) BPF_FUNC_perf_event_output; (void *) BPF_FUNC_perf_event_output;
static int (*bpf_skb_load_bytes)(void *ctx, int offset, void *to, u32 len) = static int (*bpf_skb_load_bytes)(void *ctx, int offset, void *to, u32 len) =
(void *) BPF_FUNC_skb_load_bytes; (void *) BPF_FUNC_skb_load_bytes;
static u64 (*bpf_get_current_task)(void) =
(void *) BPF_FUNC_get_current_task;
/* bpf_get_stackid will return a negative value in the case of an error /* bpf_get_stackid will return a negative value in the case of an error
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment