bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Headers for whitelisted kernel functions available to BPF programs
@ 2021-06-03 18:01 Kenny Ho
  2021-06-04  6:13 ` Martin KaFai Lau
  0 siblings, 1 reply; 8+ messages in thread
From: Kenny Ho @ 2021-06-03 18:01 UTC (permalink / raw)
  To: Martin KaFai Lau, bpf

Hi,

I understand that helper functions available to bpf programs are
listed in include/uapi/linux/bpf.h and kernel headers can be made
available at /sys/kernel/kheaders.tar.xz with CONFIG_IKHEADERS.  But
with the support of calling kernel functions from bpf programs, how
would one know which functions are whitelisted?  Are the headers for
these whitelisted functions available via something like "bpftool btf
dump file /sys/kernel/btf/vmlinux format c"?

Regards,
Kenny

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-16 16:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-03 18:01 Headers for whitelisted kernel functions available to BPF programs Kenny Ho
2021-06-04  6:13 ` Martin KaFai Lau
2021-06-04 16:10   ` Yonghong Song
2021-06-04 20:47     ` Kenny Ho
2021-06-08 19:51       ` Kenny Ho
2021-06-09  6:41         ` Yonghong Song
2021-06-15 19:34           ` Kenny Ho
2021-06-16 16:28             ` Yonghong Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).