diff options
author | Andrii Nakryiko <[email protected]> | 2020-03-24 23:57:42 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-03-26 16:38:13 -0700 |
commit | e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73 (patch) | |
tree | cdd406fb52ca535e682513416117b13ceeab2887 /lib/test-string_helpers.c | |
parent | 00c4eddf7ee5cb4941d669d605815454dc9a5419 (diff) |
bpf: Factor out attach_type to prog_type mapping for attach/detach
Factor out logic mapping expected program attach type to program type and
subsequent handling of program attach/detach. Also list out all supported
cgroup BPF program types explicitly to prevent accidental bugs once more
program types are added to a mapping. Do the same for prog_query API.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions