diff options
author | Quentin Monnet <quentin@isovalent.com> | 2021-07-30 22:54:29 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-07-30 15:40:27 -0700 |
commit | 510b4d4c5d4cbfdeaf35e4bc6483e8afa16b0e9e (patch) | |
tree | 85a39348d2e932ab730b3b188e05005640e69f5f /mm | |
parent | 0b846445985895e75958ecd59061fd7bf77e0c3f (diff) |
tools: bpftool: Slightly ease bash completion updates
Bash completion for bpftool gets two minor improvements in this patch.
Move the detection of attach types for "bpftool cgroup attach" outside
of the "case/esac" bloc, where we cannot reuse our variable holding the
list of supported attach types as a pattern list. After the change, we
have only one list of cgroup attach types to update when new types are
added, instead of the former two lists.
Also rename the variables holding lists of names for program types, map
types, and attach types, to make them more unique. This can make it
slightly easier to point people to the relevant variables to update, but
the main objective here is to help run a script to check that bash
completion is up-to-date with bpftool's source code.
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210730215435.7095-2-quentin@isovalent.com
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions