Skip to content

Commit

Permalink
Add bpf_get_current_task() helper definition (iovisor#650)
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov authored and 4ast committed Aug 6, 2016
1 parent ec615af commit 0519650
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cc/export/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ static int (*bpf_perf_event_output)(void *ctx, void *map, u32 index, void *data,
(void *) BPF_FUNC_perf_event_output;
static int (*bpf_skb_load_bytes)(void *ctx, int offset, void *to, u32 len) =
(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
*
Expand Down

0 comments on commit 0519650

Please sign in to comment.