Skip to content

Commit

Permalink
tetragon: add get_current_task_btf
Browse files Browse the repository at this point in the history
Add get_current_task_btf so we can reduce bpf_probe_read usage and start
using BTF pointer walking on newer kernels.

Signed-off-by: John Fastabend <[email protected]>
  • Loading branch information
jrfastab committed Jan 15, 2025
1 parent b8596c9 commit 3f333b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bpf/include/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static int BPF_FUNC(fib_lookup, void *ctx, struct bpf_fib_lookup *params, uint32

/* Current Process Info */
static uint64_t BPF_FUNC(get_current_task);
static uint64_t BPF_FUNC(get_current_task_btf);
static uint64_t BPF_FUNC(get_current_cgroup_id);
static uint64_t BPF_FUNC(get_current_ancestor_cgroup_id, int ancestor_level);
static uint64_t BPF_FUNC(get_current_uid_gid);
Expand Down

0 comments on commit 3f333b2

Please sign in to comment.