diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-03-25 09:57:42 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-27 02:38:13 +0300 |
commit | e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73 (patch) | |
tree | cdd406fb52ca535e682513416117b13ceeab2887 /tools/perf/scripts/python/stackcollapse.py | |
parent | 00c4eddf7ee5cb4941d669d605815454dc9a5419 (diff) | |
download | linux-e28784e3781e19f546bd2c2cd7c1c4e7c54e7f73.tar.xz |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions