libbpf: support sockopt hooks
authorStanislav Fomichev <sdf@google.com>
Thu, 27 Jun 2019 20:38:49 +0000 (13:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 27 Jun 2019 22:25:17 +0000 (15:25 -0700)
commit4cdbfb59c44a0df58ab321e4ddd9710cd0823584
tree62b8dbccb3f4f9d16fffd6aa70df97e05431e772
parentaa6ab6471e525ce6842e95a565f10b56fd6b4d5c
libbpf: support sockopt hooks

Make libbpf aware of new sockopt hooks so it can derive prog type
and hook point from the section names.

Cc: Andrii Nakryiko <andriin@fb.com>
Cc: Martin Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf_probes.c