]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
tools lib bpf: New API to adjust type of a BPF program
authorWang Nan <wangnan0@huawei.com>
Wed, 13 Jul 2016 10:44:01 +0000 (10:44 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Jul 2016 02:09:02 +0000 (23:09 -0300)
commit5f44e4c810bf3ace5a97a84554d4eeccbb563ca5
tree84e8aa1aa6450e3a7ecb08633a4798a31d3faaea
parent1a4bf28573c82b4cbeb4e8d3326b24a93ed64c8e
tools lib bpf: New API to adjust type of a BPF program

Add 4 new APIs to adjust and query the type of a BPF program.
Load program according to type set by caller. Default is set to
BPF_PROG_TYPE_KPROBE.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1468406646-21642-2-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h