aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2020-02-06 11:29:06 +0100
committerDaniel Borkmann <[email protected]>2020-02-07 22:29:45 +0100
commitd95f1e8b462c4372ac409886070bb8719d8a4d3a (patch)
tree51b5933cf72754517120706d152f3205285512f3 /tools/perf/scripts/python/export-to-postgresql.py
parent85b8ac01a421791d66c3a458a7f83cfd173fe3fa (diff)
bpftool: Don't crash on missing xlated program instructions
Turns out the xlated program instructions can also be missing if kptr_restrict sysctl is set. This means that the previous fix to check the jited_prog_insns pointer was insufficient; add another check of the xlated_prog_insns pointer as well. Fixes: 5b79bcdf0362 ("bpftool: Don't crash on missing jited insns or ksyms") Fixes: cae73f233923 ("bpftool: use bpf_program__get_prog_info_linear() in prog.c:do_dump()") Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions