summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-05-17 16:12:54 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-06-01 10:56:27 -0300
commitd3fddc355a4a4415e8d43d1faae1be713d65cf5e (patch)
tree93ed5cfae410f85c8e502f9a902c699151df9414 /tools/perf/scripts/python/bin/stackcollapse-record
parent4f2abe91922ba02bb419d91d92a518e4c805220b (diff)
downloadkernel-d3fddc355a4a4415e8d43d1faae1be713d65cf5e.tar.gz
perf stat: Fix error return code in bperf__load()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Committer notes: Added the missing {} for the now multiline 'if' block, fixing this error: CC /tmp/build/perf/util/bpf_counter.o util/bpf_counter.c: In function ‘bperf__load’: util/bpf_counter.c:523:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 523 | if (evsel->bperf_leader_link_fd < 0 && | ^~ util/bpf_counter.c:526:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 526 | goto out; | ^~~~ cc1: all warnings being treated as errors Fixes: 7fac83aaf2eecc9e ("perf stat: Introduce 'bperf' to share hardware PMCs with BPF") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Andrii Nakryiko <andrii@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <songliubraving@fb.com> Cc: Yu Kuai <yukuai3@huawei.com> Cc: Zhang Yi <yi.zhang@huawei.com> Link: http://lore.kernel.org/lkml/20210517081254.1561564-1-yukuai3@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
1c805a'>pinctrl: Add driver for Sunplus SP7021Wells Lu 2022-01-12Merge tag 'pinctrl-v5.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds 2021-12-16pinctrl: starfive: Add pinctrl driver for StarFive SoCsEmil Renner Berthing 2021-12-09pinctrl: Sort Kconfig and Makefile entries alphabeticallyAndy Shevchenko 2021-12-09pinctrl: Add Intel Thunder Bay pinctrl driverLakshmi Sowjanya D 2021-10-27pinctrl: add pinctrl/GPIO driver for Apple SoCsJoey Gouly 2021-08-11pinctrl: Add Intel Keem Bay pinctrl driverLakshmi Sowjanya D 2021-07-30pinctrl: pistachio: Make it as an optionJiaxun Yang 2021-06-26pinctrl: zynqmp: some code cleanupsSai Krishna Potthuri 2021-04-22pinctrl: Add Xilinx ZynqMP pinctrl driver supportSai Krishna Potthuri 2021-03-25pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIPGeert Uytterhoeven 2021-03-15pinctrl: rockchip: make driver be tristate moduleJianqun Xu 2021-03-15arm64: remove select PINCTRL_ROCKCHIP from ARCH_ROCKCHIPJianqun Xu 2021-02-26Merge tag 'riscv-for-linus-5.12-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds 2021-02-18pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driverDamien Le Moal 2021-01-21pinctrl: remove ste u300 driverArnd Bergmann 2021-01-21pinctrl: remove coh901 driverArnd Bergmann 2021-01-21pinctrl: remove sirf atlas/prima driversArnd Bergmann 2021-01-21pinctrl: remove zte zx driverArnd Bergmann 2020-12-16Merge tag 'pinctrl-v5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds 2020-12-11pinctrl: pinctrl-microchip-sgpio: Add irq support (for sparx5)Lars Povlsen 2020-12-08pinctrl: ralink: add a pinctrl driver for the rt2880 familySergio Paracuellos 2020-12-04pinctrl: at91-pio4: Make PINCTRL_AT91PIO4 depend on HAS_IOMEM to fix build errorTiezhu Yang 2020-12-02pinctrl: pinctrl-microchip-sgpio: Add OF config dependencyLars Povlsen 2020-12-02pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIOLars Povlsen