diff options
author | Andrey Ignatov <rdna@fb.com> | 2019-02-27 22:28:48 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-12 22:54:58 +0200 |
commit | 808649fb787d918a48a360a668ee4ee9023f0c11 (patch) | |
tree | a58fb657373b8886c6ddf715476f62484edc233d /.get_maintainer.ignore | |
parent | bpf: Sysctl hook (diff) | |
download | linux-808649fb787d918a48a360a668ee4ee9023f0c11.tar.xz linux-808649fb787d918a48a360a668ee4ee9023f0c11.zip |
bpf: Introduce bpf_sysctl_get_name helper
Add bpf_sysctl_get_name() helper to copy sysctl name (/proc/sys/ entry)
into provided by BPF_PROG_TYPE_CGROUP_SYSCTL program buffer.
By default full name (w/o /proc/sys/) is copied, e.g. "net/ipv4/tcp_mem".
If BPF_F_SYSCTL_BASE_NAME flag is set, only base name will be copied,
e.g. "tcp_mem".
Documentation for the new helper is provided in bpf.h UAPI.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions