linux-stable/tools/perf/bench
Ian Rogers 183d4f2d23 perf bench: Fix two numa NDEBUG warnings
BUG_ON is a no-op if NDEBUG is defined, otherwise it is an assert.
Compiling with NDEBUG yields:

  bench/numa.c: In function ‘bind_to_cpu’:
  bench/numa.c:314:1: error: control reaches end of non-void function [-Werror=return-type]
    314 | }
        | ^
  bench/numa.c: In function ‘bind_to_node’:
  bench/numa.c:367:1: error: control reaches end of non-void function [-Werror=return-type]
    367 | }
        | ^

Add return statements to cover this case.

Reviewed-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Link: https://lore.kernel.org/r/20220428202912.1056444-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-05-08 21:48:49 -03:00
..
bench.h perf bench: Add benchmark for evlist open/close operations 2021-08-10 11:32:37 -03:00
Build perf bench: Add benchmark for evlist open/close operations 2021-08-10 11:32:37 -03:00
epoll-ctl.c perf bench: Fix epoll bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
epoll-wait.c perf bench: Fix epoll bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
evlist-open-close.c perf evlist: Rename cpus to user_requested_cpus 2022-04-01 16:19:35 -03:00
find-bit-bench.c tools: rename bitmap_alloc() to bitmap_zalloc() 2021-09-08 11:50:27 -07:00
futex-hash.c perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
futex-lock-pi.c perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
futex-requeue.c perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
futex-wake-parallel.c perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
futex-wake.c perf bench: Fix futex bench to correct usage of affinity for machines with #CPUs > 1K 2022-04-09 12:34:29 -03:00
futex.h Revert "perf bench futex: Add support for 32-bit systems with 64-bit time_t" 2021-11-01 11:42:54 -03:00
inject-buildid.c perf bench inject-buildid: Handle writen() errors 2021-08-30 10:06:37 -03:00
kallsyms-parse.c perf bench: Add kallsyms parsing 2020-05-05 16:35:32 -03:00
mem-functions.c perf bench mem: Always memset source before memcpy 2020-08-13 09:34:26 -03:00
mem-memcpy-arch.h
mem-memcpy-x86-64-asm-def.h
mem-memcpy-x86-64-asm.S tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy' 2020-11-12 17:55:41 -03:00
mem-memset-arch.h
mem-memset-x86-64-asm-def.h
mem-memset-x86-64-asm.S tools arch: Update arch/x86/lib/mem{cpy,set}_64.S copies used in 'perf bench mem memcpy' 2020-11-12 17:55:41 -03:00
numa.c perf bench: Fix two numa NDEBUG warnings 2022-05-08 21:48:49 -03:00
sched-messaging.c Revert "perf bench: Fix two memory leaks detected with ASan" 2021-12-06 21:57:52 -03:00
sched-pipe.c perf tools: Cast (struct timeval).tv_sec when printing 2021-03-06 16:54:24 -03:00
synthesize.c perf tools: Allow controlling synthesizing PERF_RECORD_ metadata events during record 2021-09-17 08:44:19 -03:00
syscall.c perf tools: Cast (struct timeval).tv_sec when printing 2021-03-06 16:54:24 -03:00