aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2018-11-19 14:49:01 -0800
committerDaniel Borkmann <[email protected]>2018-11-20 00:49:32 +0100
commit23499442c319412aa8e54e7a939e2eb531bdd77d (patch)
tree6bfd2e191914a24c538ed5d6b850cf05bd4dd836 /tools/perf/scripts/python/stat-cpi.py
parent592ee43faf860c1f2c0a4c11838db6fdb974bb78 (diff)
bpf: libbpf: retry map creation without the name
Since commit 88cda1c9da02 ("bpf: libbpf: Provide basic API support to specify BPF obj name"), libbpf unconditionally sets bpf_attr->name for maps. Pre v4.14 kernels don't know about map names and return an error about unexpected non-zero data. Retry sys_bpf without a map name to cover older kernels. v2 changes: * check for errno == EINVAL as suggested by Daniel Borkmann Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions