]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Fix trace_sched_switch_end definition
authorGaurav Singh <gaursingh@nvidia.com>
Wed, 25 May 2016 11:46:34 +0000 (17:16 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 4 Jul 2016 22:20:35 +0000 (15:20 -0700)
We model what we do here on other empty (no arg)
tracepoint function definitions in the kernel.

In file included from include/trace/define_trace.h:86:0,
from include/trace/events/sched.h:452,
from kernel/sched/core.c:94:
include/trace/events/sched.h:
In function 'ftrace_define_fields_sched_switch_end':
include/trace/ftrace.h:327:27:
warning: unused variable 'field' [-Wunused-variable]
struct ftrace_raw_##call field;

include/trace/ftrace.h:32:2:
note: in expansion of macro 'DECLARE_EVENT_CLASS'
DECLARE_EVENT_CLASS(name,

include/trace/events/sched.h:155:1:
note: in expansion of macro 'TRACE_EVENT'
TRACE_EVENT(sched_switch_end,

Bug 200187768

Change-Id: I4d5a2b4717d62ca90018d0e3847c185d7cc590ac
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163923
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
include/trace/events/sched.h

index 725c0cbb6caf95fb67479565a3d00da6702650f9..ac3fdc35daaced13b7f3221bdfef3f8aea2d1268 100644 (file)
@@ -154,17 +154,20 @@ TRACE_EVENT(sched_switch,
 
 TRACE_EVENT(sched_switch_end,
 
-       TP_PROTO(u32 a),
+       TP_PROTO(int dummy),
 
-       TP_ARGS(a),
+       TP_ARGS(dummy),
 
        TP_STRUCT__entry(
+               __field(int, dummy)
        ),
 
        TP_fast_assign(
+               __entry->dummy = dummy;
        ),
 
-       TP_printk("none %d", 0)
+       TP_printk("dummy=%lu",
+               (unsigned long)__entry->dummy)
 );