aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events_hist.c
diff options
context:
space:
mode:
authorliqiong <liqiong@nfschina.com>2022-05-12 22:32:30 +0800
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-05-26 21:13:00 -0400
commit2d601b98643dd2846e2958d931826e7b7af44969 (patch)
tree29d15a6e4aaa48c20be659597d582a16134c11a4 /kernel/trace/trace_events_hist.c
parenttracing/timerlat: Do not wakeup the thread if the trace stops at the IRQ (diff)
downloadlinux-dev-2d601b98643dd2846e2958d931826e7b7af44969.tar.xz
linux-dev-2d601b98643dd2846e2958d931826e7b7af44969.zip
tracing: Change "char *" string form to "char []"
The "char []" string form declares a single variable. It is better than "char *" which creates two variables in the final assembly. Link: https://lkml.kernel.org/r/20220512143230.28796-1-liqiong@nfschina.com Signed-off-by: liqiong <liqiong@nfschina.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events_hist.c')
-rw-r--r--kernel/trace/trace_events_hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events_hist.c b/kernel/trace/trace_events_hist.c
index c6a65738feb3..48e82e141d54 100644
--- a/kernel/trace/trace_events_hist.c
+++ b/kernel/trace/trace_events_hist.c
@@ -4165,7 +4165,7 @@ static int create_val_field(struct hist_trigger_data *hist_data,
return __create_val_field(hist_data, val_idx, file, NULL, field_str, 0);
}
-static const char *no_comm = "(no comm)";
+static const char no_comm[] = "(no comm)";
static u64 hist_field_execname(struct hist_field *hist_field,
struct tracing_map_elt *elt,