summaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/tests/test-cpumap.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-01-17 13:14:46 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-01-17 13:14:46 -0800
commite2da783614bb8930aa89753d3c3cd53d5604665d (patch)
tree2e78365118109828ba1932a3a205f01e5b085b8e /tools/lib/perf/tests/test-cpumap.c
parenta1339d6355ac42e1bf4fcdfce8bfce61172f8891 (diff)
parent648b054a4647cd62e13ba79f398b8b97a7c82b19 (diff)
downloadlinux-e2da783614bb8930aa89753d3c3cd53d5604665d.tar.bz2
Merge tag 'perf-tools-fixes-2021-01-17' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
Pull perf tools fixes from Arnaldo Carvalho de Melo: - Fix 'CPU too large' error in Intel PT - Correct event attribute sizes in 'perf inject' - Sync build_bug.h and kvm.h kernel copies - Fix bpf.h header include directive in 5sec.c 'perf trace' bpf example - libbpf tests fixes - Fix shadow stat 'perf test' for non-bash shells - Take cgroups into account for shadow stats in 'perf stat' * tag 'perf-tools-fixes-2021-01-17' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: perf inject: Correct event attribute sizes perf intel-pt: Fix 'CPU too large' error perf stat: Take cgroups into account for shadow stats perf stat: Introduce struct runtime_stat_data libperf tests: Fail when failing to get a tracepoint id libperf tests: If a test fails return non-zero libperf tests: Avoid uninitialized variable warning perf test: Fix shadow stat test for non-bash shells tools headers: Syncronize linux/build_bug.h with the kernel sources tools headers UAPI: Sync kvm.h headers with the kernel sources perf bpf examples: Fix bpf.h header include directive in 5sec.c example
Diffstat (limited to 'tools/lib/perf/tests/test-cpumap.c')
-rw-r--r--tools/lib/perf/tests/test-cpumap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/perf/tests/test-cpumap.c b/tools/lib/perf/tests/test-cpumap.c
index c8d45091e7c2..c70e9e03af3e 100644
--- a/tools/lib/perf/tests/test-cpumap.c
+++ b/tools/lib/perf/tests/test-cpumap.c
@@ -27,5 +27,5 @@ int main(int argc, char **argv)
perf_cpu_map__put(cpus);
__T_END;
- return 0;
+ return tests_failed == 0 ? 0 : -1;
}