+2
-2
kernel/trace/trace.c
+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
+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))