aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-04-06 16:41:54 -0700
committerDaniel Borkmann <[email protected]>2023-04-11 18:05:43 +0200
commit971fb5057d787d0a7e7c8cb910207c82e2db920e (patch)
tree9e4340cffdef789e1df368ee3087c0d73b882011 /tools/perf/scripts/python/stackcollapse.py
parent24bc80887adb4d6fc0057d4f14fabeaa4502b2a0 (diff)
bpf: Fix missing -EFAULT return on user log buf error in btf_parse()
btf_parse() is missing -EFAULT error return if log->ubuf was NULL-ed out due to error while copying data into user-provided buffer. Add it, but handle a special case of BPF_LOG_KERNEL in which log->ubuf is always NULL. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Lorenz Bauer <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions