aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/annotate.c
diff options
context:
space:
mode:
authorShang XiaoJing <[email protected]>2022-09-22 14:14:35 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-10-04 11:55:22 +0000
commite8a6430ff605734ab5a7da42097f6b786a78ba2b (patch)
tree8ef66814250b88abdc0567f7211ca89bcd231978 /tools/perf/ui/browsers/annotate.c
parentperf lock contention: Skip stack trace from BPF (diff)
downloadkernel-e8a6430ff605734ab5a7da42097f6b786a78ba2b.tar.gz
kernel-e8a6430ff605734ab5a7da42097f6b786a78ba2b.zip
perf genelf: Fix error code in jit_write_elf()
The error code is set to -1 at the beginning of jit_write_elf(), but it is assigned by jit_add_eh_frame_info() in the middle, hence the following error can only return the error code of jit_add_eh_frame_info(). Reset the error code to the default value after being assigned by jit_add_eh_frame_info(). Fixes: 086f9f3d7897d808 ("perf jit: Generate .eh_frame/.eh_frame_hdr in DSO") Signed-off-by: Shang XiaoJing <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stefano Sanfilippo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions