Skip to content

[examples tcprtt_sockops] load program: invalid argument: unknown func bpf_get_current_pid_tgid #1373

Answered by florianl
PizerLiu asked this question in Q&A
Discussion options

You must be logged in to vote

bpf_get_current_pid_tgid() is a function that is not supported by the eBPF program type of BPF_PROG_TYPE_SOCK_OPS.
Not every eBPF helper function is available with every eBPF program type. Please consult https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md to get an overview of functions that are supported by program type.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@PizerLiu
Comment options

@florianl
Comment options

@PizerLiu
Comment options

Answer selected by florianl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants