diff options
author | Andrii Nakryiko <[email protected]> | 2021-05-13 16:36:43 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-05-13 17:23:58 -0700 |
commit | c1cccec9c63637c4c5ee0aa2da2850d983c19e88 (patch) | |
tree | a2146db56f08f2684dbefebc4989e66dc4507191 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 9e9b451593b161403aedf15eef8ced62dba65f40 (diff) |
libbpf: Reject static maps
Static maps never really worked with libbpf, because all such maps were always
silently resolved to the very first map. Detect static maps (both legacy and
BTF-defined) and report user-friendly error.
Tested locally by switching few maps (legacy and BTF-defined) in selftests to
static ones and verifying that now libbpf rejects them loudly.
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 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions