lkml.org 
[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC patch 15/32] trace event sched remove trailing semicolon
    Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array
    of events, thus saving space for trace event probes. Remove the trailing
    semicolons at the end of TRACE_EVENT() and DEFINE_EVENT() in scheduler
    instrumentation.

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    CC: Steven Rostedt <rostedt@goodmis.org>
    CC: Frederic Weisbecker <fweisbec@gmail.com>
    CC: Ingo Molnar <mingo@elte.hu>
    CC: Thomas Gleixner <tglx@linutronix.de>
    CC: Peter Zijlstra <peterz@infradead.org>
    ---
    include/trace/events/sched.h | 38 +++++++++++++++++++-------------------
    1 file changed, 19 insertions(+), 19 deletions(-)

    Index: linux-2.6-lttng/include/trace/events/sched.h
    ===================================================================
    --- linux-2.6-lttng.orig/include/trace/events/sched.h
    +++ linux-2.6-lttng/include/trace/events/sched.h
    @@ -27,7 +27,7 @@ TRACE_EVENT(sched_kthread_stop,
    ),

    TP_printk("comm=%s pid=%d", __entry->comm, __entry->pid)
    -);
    +)

    /*
    * Tracepoint for the return value of the kthread stopping:
    @@ -47,7 +47,7 @@ TRACE_EVENT(sched_kthread_stop_ret,
    ),

    TP_printk("ret=%d", __entry->ret)
    -);
    +)

    /*
    * Tracepoint for waking up a task:
    @@ -77,18 +77,18 @@ DECLARE_EVENT_CLASS(sched_wakeup_templat
    TP_printk("comm=%s pid=%d prio=%d success=%d target_cpu=%03d",
    __entry->comm, __entry->pid, __entry->prio,
    __entry->success, __entry->target_cpu)
    -);
    +)

    DEFINE_EVENT(sched_wakeup_template, sched_wakeup,
    TP_PROTO(struct task_struct *p, int success),
    - TP_ARGS(p, success));
    + TP_ARGS(p, success))

    /*
    * Tracepoint for waking up a new task:
    */
    DEFINE_EVENT(sched_wakeup_template, sched_wakeup_new,
    TP_PROTO(struct task_struct *p, int success),
    - TP_ARGS(p, success));
    + TP_ARGS(p, success))

    #ifdef CREATE_TRACE_POINTS
    static inline long __trace_sched_switch_state(struct task_struct *p)
    @@ -145,7 +145,7 @@ TRACE_EVENT(sched_switch,
    { 16, "Z" }, { 32, "X" }, { 64, "x" },
    { 128, "W" }) : "R",
    __entry->next_comm, __entry->next_pid, __entry->next_prio)
    -);
    +)

    /*
    * Tracepoint for a task being migrated:
    @@ -175,7 +175,7 @@ TRACE_EVENT(sched_migrate_task,
    TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d",
    __entry->comm, __entry->pid, __entry->prio,
    __entry->orig_cpu, __entry->dest_cpu)
    -);
    +)

    DECLARE_EVENT_CLASS(sched_process_template,

    @@ -197,14 +197,14 @@ DECLARE_EVENT_CLASS(sched_process_templa

    TP_printk("comm=%s pid=%d prio=%d",
    __entry->comm, __entry->pid, __entry->prio)
    -);
    +)

    /*
    * Tracepoint for freeing a task:
    */
    DEFINE_EVENT(sched_process_template, sched_process_free,
    TP_PROTO(struct task_struct *p),
    - TP_ARGS(p));
    + TP_ARGS(p))


    /*
    @@ -212,14 +212,14 @@ DEFINE_EVENT(sched_process_template, sch
    */
    DEFINE_EVENT(sched_process_template, sched_process_exit,
    TP_PROTO(struct task_struct *p),
    - TP_ARGS(p));
    + TP_ARGS(p))

    /*
    * Tracepoint for waiting on task to unschedule:
    */
    DEFINE_EVENT(sched_process_template, sched_wait_task,
    TP_PROTO(struct task_struct *p),
    - TP_ARGS(p));
    + TP_ARGS(p))

    /*
    * Tracepoint for a waiting task:
    @@ -244,7 +244,7 @@ TRACE_EVENT(sched_process_wait,

    TP_printk("comm=%s pid=%d prio=%d",
    __entry->comm, __entry->pid, __entry->prio)
    -);
    +)

    /*
    * Tracepoint for do_fork:
    @@ -272,7 +272,7 @@ TRACE_EVENT(sched_process_fork,
    TP_printk("comm=%s pid=%d child_comm=%s child_pid=%d",
    __entry->parent_comm, __entry->parent_pid,
    __entry->child_comm, __entry->child_pid)
    -);
    +)

    /*
    * XXX the below sched_stat tracepoints only apply to SCHED_OTHER/BATCH/IDLE
    @@ -302,7 +302,7 @@ DECLARE_EVENT_CLASS(sched_stat_template,
    TP_printk("comm=%s pid=%d delay=%Lu [ns]",
    __entry->comm, __entry->pid,
    (unsigned long long)__entry->delay)
    -);
    +)


    /*
    @@ -311,7 +311,7 @@ DECLARE_EVENT_CLASS(sched_stat_template,
    */
    DEFINE_EVENT(sched_stat_template, sched_stat_wait,
    TP_PROTO(struct task_struct *tsk, u64 delay),
    - TP_ARGS(tsk, delay));
    + TP_ARGS(tsk, delay))

    /*
    * Tracepoint for accounting sleep time (time the task is not runnable,
    @@ -319,7 +319,7 @@ DEFINE_EVENT(sched_stat_template, sched_
    */
    DEFINE_EVENT(sched_stat_template, sched_stat_sleep,
    TP_PROTO(struct task_struct *tsk, u64 delay),
    - TP_ARGS(tsk, delay));
    + TP_ARGS(tsk, delay))

    /*
    * Tracepoint for accounting iowait time (time the task is not runnable
    @@ -327,7 +327,7 @@ DEFINE_EVENT(sched_stat_template, sched_
    */
    DEFINE_EVENT(sched_stat_template, sched_stat_iowait,
    TP_PROTO(struct task_struct *tsk, u64 delay),
    - TP_ARGS(tsk, delay));
    + TP_ARGS(tsk, delay))

    /*
    * Tracepoint for accounting runtime (time the task is executing
    @@ -360,7 +360,7 @@ TRACE_EVENT(sched_stat_runtime,
    __entry->comm, __entry->pid,
    (unsigned long long)__entry->runtime,
    (unsigned long long)__entry->vruntime)
    -);
    +)

    /*
    * Tracepoint for showing priority inheritance modifying a tasks
    @@ -389,7 +389,7 @@ TRACE_EVENT(sched_pi_setprio,
    TP_printk("comm=%s pid=%d oldprio=%d newprio=%d",
    __entry->comm, __entry->pid,
    __entry->oldprio, __entry->newprio)
    -);
    +)

    #endif /* _TRACE_SCHED_H */



    \
     
     \ /
      Last update: 2011-05-04 01:23    [W:0.039 / U:5.832 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site