diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-12-15 09:03:19 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-12-15 09:32:21 -0800 |
commit | a06ae6acc14b7f8c07ce9d9685e7b90fcba5b52f (patch) | |
tree | 2f81f80c00f4927221ed3ffe7ca1da7162079902 /tools/lib/bpf/Makefile | |
parent | a06bf42f5a95ff462401d59d0c08cf4620213647 (diff) | |
parent | 99f9863a0c45f4e87cb99593015090fdc9f44398 (diff) | |
download | linux-stable-a06ae6acc14b7f8c07ce9d9685e7b90fcba5b52f.tar.gz linux-stable-a06ae6acc14b7f8c07ce9d9685e7b90fcba5b52f.tar.bz2 linux-stable-a06ae6acc14b7f8c07ce9d9685e7b90fcba5b52f.zip |
Merge branch 'bpftool-match-by-name'
Paul Chaignon says:
====================
When working with frequently modified BPF programs, both the ID and the
tag may change. bpftool currently doesn't provide a "stable" way to match
such programs. This patchset allows bpftool to match programs and maps by
name.
When given a tag that matches several programs, bpftool currently only
considers the first match. The first patch changes that behavior to
either process all matching programs (for the show and dump commands) or
error out. The second patch implements program lookup by name, with the
same behavior as for tags in case of ambiguity. The last patch implements
map lookup by name.
Changelogs:
Changes in v2:
- Fix buffer overflow after realloc.
- Add example output to commit message.
- Properly close JSON arrays on errors.
- Fix style errors (line breaks, for loops, exit labels, type for
tagname).
- Move do_show code for argc == 2 to do_show_subset functions.
- Rebase.
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/Makefile')
0 files changed, 0 insertions, 0 deletions