cpufreq: interactive: fixup trace of string params
authorTodd Poynor <toddpoynor@google.com>
Fri, 11 May 2012 18:06:09 +0000 (11:06 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:40 +0000 (13:52 -0800)
Change-Id: Iac47f62437e61b13724afbbf9df1a0729f58f236
Signed-off-by: Todd Poynor <toddpoynor@google.com>
include/trace/events/cpufreq_interactive.h

index 0791f2728c1bc0c150b0a80bd80c3919e6b299bf..ea83664a4e6d7a7f0265fb4c4803823270e80aba 100644 (file)
@@ -83,27 +83,27 @@ DEFINE_EVENT(loadeval, cpufreq_interactive_notyet,
 );
 
 TRACE_EVENT(cpufreq_interactive_boost,
-           TP_PROTO(char *s),
+           TP_PROTO(const char *s),
            TP_ARGS(s),
            TP_STRUCT__entry(
-                   __field(char *, s)
+                   __string(s, s)
            ),
            TP_fast_assign(
-                   __entry->s = s;
+                   __assign_str(s, s);
            ),
-           TP_printk("%s", __entry->s)
+           TP_printk("%s", __get_str(s))
 );
 
 TRACE_EVENT(cpufreq_interactive_unboost,
-           TP_PROTO(char *s),
+           TP_PROTO(const char *s),
            TP_ARGS(s),
            TP_STRUCT__entry(
-                   __field(char *, s)
+                   __string(s, s)
            ),
            TP_fast_assign(
-                   __entry->s = s;
+                   __assign_str(s, s);
            ),
-           TP_printk("%s", __entry->s)
+           TP_printk("%s", __get_str(s))
 );
 
 #endif /* _TRACE_CPUFREQ_INTERACTIVE_H */