Merge tag 'trace-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fixes from Steven Rostedt:

- Fix sorting on old "cpu" value in histograms

- Fix return value of __setup() boot parameter handlers

* tag 'trace-v5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: Fix return value of __setup handlers
tracing/histogram: Fix sorting on old "cpu" value

Changed files
+6 -6
kernel
+2 -2
kernel/trace/trace.c
··· 235 235 static int __init set_trace_boot_options(char *str) 236 236 { 237 237 strlcpy(trace_boot_options_buf, str, MAX_TRACER_SIZE); 238 - return 0; 238 + return 1; 239 239 } 240 240 __setup("trace_options=", set_trace_boot_options); 241 241 ··· 246 246 { 247 247 strlcpy(trace_boot_clock_buf, str, MAX_TRACER_SIZE); 248 248 trace_boot_clock = trace_boot_clock_buf; 249 - return 0; 249 + return 1; 250 250 } 251 251 __setup("trace_clock=", set_trace_boot_clock); 252 252
+3 -3
kernel/trace/trace_events_hist.c
··· 2289 2289 /* 2290 2290 * For backward compatibility, if field_name 2291 2291 * was "cpu", then we treat this the same as 2292 - * common_cpu. 2292 + * common_cpu. This also works for "CPU". 2293 2293 */ 2294 - if (strcmp(field_name, "cpu") == 0) { 2294 + if (field && field->filter_type == FILTER_CPU) { 2295 2295 *flags |= HIST_FIELD_FL_CPU; 2296 2296 } else { 2297 2297 hist_err(tr, HIST_ERR_FIELD_NOT_FOUND, ··· 4832 4832 4833 4833 if (hist_field->flags & HIST_FIELD_FL_STACKTRACE) 4834 4834 cmp_fn = tracing_map_cmp_none; 4835 - else if (!field) 4835 + else if (!field || hist_field->flags & HIST_FIELD_FL_CPU) 4836 4836 cmp_fn = tracing_map_cmp_num(hist_field->size, 4837 4837 hist_field->is_signed); 4838 4838 else if (is_string_field(field))
+1 -1
kernel/trace/trace_kprobe.c
··· 32 32 strlcpy(kprobe_boot_events_buf, str, COMMAND_LINE_SIZE); 33 33 disable_tracing_selftest("running kprobe events"); 34 34 35 - return 0; 35 + return 1; 36 36 } 37 37 __setup("kprobe_event=", set_kprobe_boot_events); 38 38