linux/tools/tracing
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
..
latency tools/latency-collector: Use correct size when writing queue_full_warning 2021-10-25 22:27:19 -04:00
rtla rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
Makefile tools/tracing: Update Makefile to build rtla 2022-01-27 19:15:47 -05:00