From: Tomas Glozar <tglozar@xxxxxxxxxx> commit 80d3ba1cf51bfbbb3b098434f2b2c95cd7c0ae5c upstream. 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: stable@xxxxxxxxxxxxxxx Cc: John Kacur <jkacur@xxxxxxxxxx> Cc: Luis Goncalves <lgoncalv@xxxxxxxxxx> Link: https://lore.kernel.org/20250107144823.239782-2-tglozar@xxxxxxxxxx Signed-off-by: Tomas Glozar <tglozar@xxxxxxxxxx> Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/tracing/rtla/src/osnoise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/tracing/rtla/src/osnoise.c +++ b/tools/tracing/rtla/src/osnoise.c @@ -867,7 +867,7 @@ int osnoise_set_workload(struct osnoise_ retval = osnoise_options_set_option("OSNOISE_WORKLOAD", onoff); if (retval < 0) - return -1; + return -2; context->opt_workload = onoff; Patches currently in stable-queue which might be from tglozar@xxxxxxxxxx are queue-6.13/tracing-osnoise-fix-resetting-of-tracepoints.patch queue-6.13/rtla-timerlat_top-set-osnoise_workload-for-kernel-threads.patch queue-6.13/rtla-osnoise-distinguish-missing-workload-option.patch queue-6.13/rtla-timerlat_hist-set-osnoise_workload-for-kernel-threads.patch queue-6.13/rtla-timerlat_top-stop-timerlat-tracer-on-signal.patch queue-6.13/rtla-timerlat_hist-stop-timerlat-tracer-on-signal.patch queue-6.13/rtla-add-trace_instance_stop.patch