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 16/32] trace event scsi remove semicolons
    Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array
    of events, thus saving space for trace event probes.

    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: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
    CC: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
    CC: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
    CC: James Bottomley <James.Bottomley@suse.de>
    CC: Martin K. Petersen <martin.petersen@oracle.com>
    ---
    include/trace/events/scsi.h | 17 +++++++++++------
    1 file changed, 11 insertions(+), 6 deletions(-)

    Index: linux-2.6-lttng/include/trace/events/scsi.h
    ===================================================================
    --- linux-2.6-lttng.orig/include/trace/events/scsi.h
    +++ linux-2.6-lttng/include/trace/events/scsi.h
    @@ -238,7 +243,7 @@ TRACE_EVENT(scsi_dispatch_cmd_start,
    show_opcode_name(__entry->opcode),
    __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len),
    __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len))
    -);
    +)

    TRACE_EVENT(scsi_dispatch_cmd_error,

    @@ -283,7 +288,7 @@ TRACE_EVENT(scsi_dispatch_cmd_error,
    __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len),
    __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len),
    __entry->rtn)
    -);
    +)

    DECLARE_EVENT_CLASS(scsi_cmd_done_timeout_template,

    @@ -332,15 +337,15 @@ DECLARE_EVENT_CLASS(scsi_cmd_done_timeou
    show_hostbyte_name(((__entry->result) >> 16) & 0xff),
    show_msgbyte_name(((__entry->result) >> 8) & 0xff),
    show_statusbyte_name(__entry->result & 0xff))
    -);
    +)

    DEFINE_EVENT(scsi_cmd_done_timeout_template, scsi_dispatch_cmd_done,
    TP_PROTO(struct scsi_cmnd *cmd),
    - TP_ARGS(cmd));
    + TP_ARGS(cmd))

    DEFINE_EVENT(scsi_cmd_done_timeout_template, scsi_dispatch_cmd_timeout,
    TP_PROTO(struct scsi_cmnd *cmd),
    - TP_ARGS(cmd));
    + TP_ARGS(cmd))

    TRACE_EVENT(scsi_eh_wakeup,

    @@ -357,7 +362,7 @@ TRACE_EVENT(scsi_eh_wakeup,
    ),

    TP_printk("host_no=%u", __entry->host_no)
    -);
    +)

    #endif /* _TRACE_SCSI_H */



    \
     
     \ /
      Last update: 2011-05-04 01:21    [W:0.023 / U:0.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site