what is trace_sched_kthread_stop_ret used for?

Townsend, Richard Richard.Townsend at warwick.ac.uk
Wed Dec 28 16:15:24 EST 2011


It appears to be a macro defined in include/trace/events/shed.h. 

 35 TRACE_EVENT(sched_kthread_stop_ret,
 36
 37         TP_PROTO(int ret),
 38
 39         TP_ARGS(ret),
 40
 41         TP_STRUCT__entry(
 42                 __field(        int,    ret     )
 43         ),
 44
 45         TP_fast_assign(
 46                 __entry->ret    = ret;
 47         ),
 48
 49         TP_printk("ret=%d", __entry->ret)
 50 );

--
Richard Townsend

-----Original Message-----
From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of loody
Sent: 28 December 2011 13:23
To: kernelnewbies at kernelnewbies.org
Subject: what is trace_sched_kthread_stop_ret used for?

Dear all:
i saw there is a function called "trace_sched_kthread_stop_ret" in some place of kernel.
but I found it is empty function.
http://lxr.linux.no/linux+v3.1.5/+code=trace_sched_kthread_stop_ret

if it is empty, why we still keep it in kernel?

--
Regards,

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





More information about the Kernelnewbies mailing list