Skip to content

Commit 80d3ba1

Browse files
lenticularis39rostedt
authored andcommitted
rtla/osnoise: Distinguish missing workload option
osnoise_set_workload returns -1 for both missing OSNOISE_WORKLOAD option and failure in setting the option. Return -1 for missing and -2 for failure to distinguish them. Cc: [email protected] Cc: John Kacur <[email protected]> Cc: Luis Goncalves <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 80967b3 commit 80d3ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/tracing/rtla/src/osnoise.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ int osnoise_set_workload(struct osnoise_context *context, bool onoff)
867867

868868
retval = osnoise_options_set_option("OSNOISE_WORKLOAD", onoff);
869869
if (retval < 0)
870-
return -1;
870+
return -2;
871871

872872
context->opt_workload = onoff;
873873

0 commit comments

Comments
 (0)