All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kenny Ho <y2kenny@gmail.com>
To: Martin KaFai Lau <kafai@fb.com>, bpf <bpf@vger.kernel.org>
Subject: Headers for whitelisted kernel functions available to BPF programs
Date: Thu, 3 Jun 2021 14:01:13 -0400	[thread overview]
Message-ID: <CAOWid-drUQKifjPgzQ3MQiKUUrHp5eKOydgSToadW1fNkUME7g@mail.gmail.com> (raw)

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

             reply	other threads:[~2021-06-03 18:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-03 18:01 Kenny Ho [this message]
2021-06-04  6:13 ` Headers for whitelisted kernel functions available to BPF programs 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOWid-drUQKifjPgzQ3MQiKUUrHp5eKOydgSToadW1fNkUME7g@mail.gmail.com \
    --to=y2kenny@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=kafai@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.