1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/tracing/rtla/src
John Kacur 4c68743748 rtla: Fix exit status when returning from calls to usage()
rtla_usage(), osnoise_usage() and timerlat_usage() all exit with an
error status.

However when these are called from help, they should exit with a
non-error status.

Fix this by passing the exit status to the functions.

Note, although we remove the subsequent call to exit after calling
usage, we leave it in at the end of a function to suppress the compiler
warning "control reaches end of a non-void function".

Link: https://lkml.kernel.org/r/20221107144313.22470-1-jkacur@redhat.com

Signed-off-by: John Kacur <jkacur@redhat.com>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2022-12-09 18:06:24 -05:00
..
osnoise.c rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
osnoise.h rtla/osnoise: Add support to adjust the tracing_thresh 2022-03-15 14:36:48 -04:00
osnoise_hist.c rtla: Avoid record NULL pointer dereference 2022-05-26 15:18:28 -04:00
osnoise_top.c rtla: Avoid record NULL pointer dereference 2022-05-26 15:18:28 -04:00
rtla.c rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
timerlat.c rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
timerlat.h rtla/timerlat: Add timerlat hist mode 2022-01-13 17:02:43 -05:00
timerlat_hist.c rtla: Fix tracer name 2022-08-10 11:43:59 -04:00
timerlat_top.c rtla: Fix tracer name 2022-08-10 11:43:59 -04:00
trace.c rtla: Fix double free 2022-07-31 17:03:38 -04:00
trace.h rtla: Check for trace off also in the trace instance 2022-03-15 14:36:50 -04:00
utils.c rtla: Define syscall numbers for riscv 2022-07-31 17:04:05 -04:00
utils.h rtla: Remove procps-ng dependency 2022-05-26 15:20:46 -04:00