diff options
author | 2020-03-24 23:57:42 -0700 | |
---|---|---|
committer | 2020-03-26 16:38:13 -0700 | |
commit | e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73 (patch) | |
tree | cdd406fb52ca535e682513416117b13ceeab2887 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Factor out cgroup storages operations (diff) | |
download | wireguard-linux-e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73.tar.xz wireguard-linux-e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73.zip |
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 <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200325065746.640559-3-andriin@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions