diff options
author | John Kacur <jkacur@redhat.com> | 2024-02-03 03:16:07 +0300 |
---|---|---|
committer | Daniel Bristot de Oliveira <bristot@kernel.org> | 2024-02-12 12:59:09 +0300 |
commit | b5f319360371087d52070d8f3fc7789e80ce69a6 (patch) | |
tree | 8b690c0cef849975dc2807a5aab472fd33b14c07 /tools/tracing/rtla/src/timerlat_hist.c | |
parent | 14f08c976ffe0d2117c6199c32663df1cbc45c65 (diff) | |
download | linux-b5f319360371087d52070d8f3fc7789e80ce69a6.tar.xz |
tools/rtla: Exit with EXIT_SUCCESS when help is invoked
Fix rtla so that the following commands exit with 0 when help is invoked
rtla osnoise top -h
rtla osnoise hist -h
rtla timerlat top -h
rtla timerlat hist -h
Link: https://lore.kernel.org/linux-trace-devel/20240203001607.69703-1-jkacur@redhat.com
Cc: stable@vger.kernel.org
Fixes: 1eeb6328e8b3 ("rtla/timerlat: Add timerlat hist mode")
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Diffstat (limited to 'tools/tracing/rtla/src/timerlat_hist.c')
-rw-r--r-- | tools/tracing/rtla/src/timerlat_hist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/src/timerlat_hist.c index 3a5b8c409e7d..dbf154082f95 100644 --- a/tools/tracing/rtla/src/timerlat_hist.c +++ b/tools/tracing/rtla/src/timerlat_hist.c @@ -545,7 +545,11 @@ static void timerlat_hist_usage(char *usage) for (i = 0; msg[i]; i++) fprintf(stderr, "%s\n", msg[i]); - exit(1); + + if (usage) + exit(EXIT_FAILURE); + + exit(EXIT_SUCCESS); } /* |