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 21/32] trace event vmscan 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: Mel Gorman <mel@csn.ul.ie>
    CC: Rik van Riel <riel@redhat.com>
    CC: Larry Woodman <lwoodman@redhat.com>
    CC: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    ---
    include/trace/events/vmscan.h | 32 ++++++++++++++++----------------
    1 file changed, 16 insertions(+), 16 deletions(-)

    Index: linux-2.6-lttng/include/trace/events/vmscan.h
    ===================================================================
    --- linux-2.6-lttng.orig/include/trace/events/vmscan.h
    +++ linux-2.6-lttng/include/trace/events/vmscan.h
    @@ -49,7 +49,7 @@ TRACE_EVENT(mm_vmscan_kswapd_sleep,
    ),

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

    TRACE_EVENT(mm_vmscan_kswapd_wake,

    @@ -68,7 +68,7 @@ TRACE_EVENT(mm_vmscan_kswapd_wake,
    ),

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

    TRACE_EVENT(mm_vmscan_wakeup_kswapd,

    @@ -92,7 +92,7 @@ TRACE_EVENT(mm_vmscan_wakeup_kswapd,
    __entry->nid,
    __entry->zid,
    __entry->order)
    -);
    +)

    DECLARE_EVENT_CLASS(mm_vmscan_direct_reclaim_begin_template,

    @@ -116,28 +116,28 @@ DECLARE_EVENT_CLASS(mm_vmscan_direct_rec
    __entry->order,
    __entry->may_writepage,
    show_gfp_flags(__entry->gfp_flags))
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_begin_template, mm_vmscan_direct_reclaim_begin,

    TP_PROTO(int order, int may_writepage, gfp_t gfp_flags),

    TP_ARGS(order, may_writepage, gfp_flags)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_begin_template, mm_vmscan_memcg_reclaim_begin,

    TP_PROTO(int order, int may_writepage, gfp_t gfp_flags),

    TP_ARGS(order, may_writepage, gfp_flags)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_begin_template, mm_vmscan_memcg_softlimit_reclaim_begin,

    TP_PROTO(int order, int may_writepage, gfp_t gfp_flags),

    TP_ARGS(order, may_writepage, gfp_flags)
    -);
    +)

    DECLARE_EVENT_CLASS(mm_vmscan_direct_reclaim_end_template,

    @@ -154,28 +154,28 @@ DECLARE_EVENT_CLASS(mm_vmscan_direct_rec
    ),

    TP_printk("nr_reclaimed=%lu", __entry->nr_reclaimed)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_end_template, mm_vmscan_direct_reclaim_end,

    TP_PROTO(unsigned long nr_reclaimed),

    TP_ARGS(nr_reclaimed)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_end_template, mm_vmscan_memcg_reclaim_end,

    TP_PROTO(unsigned long nr_reclaimed),

    TP_ARGS(nr_reclaimed)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_direct_reclaim_end_template, mm_vmscan_memcg_softlimit_reclaim_end,

    TP_PROTO(unsigned long nr_reclaimed),

    TP_ARGS(nr_reclaimed)
    -);
    +)


    DECLARE_EVENT_CLASS(mm_vmscan_lru_isolate_template,
    @@ -222,7 +222,7 @@ DECLARE_EVENT_CLASS(mm_vmscan_lru_isolat
    __entry->nr_lumpy_taken,
    __entry->nr_lumpy_dirty,
    __entry->nr_lumpy_failed)
    -);
    +)

    DEFINE_EVENT(mm_vmscan_lru_isolate_template, mm_vmscan_lru_isolate,

    @@ -237,7 +237,7 @@ DEFINE_EVENT(mm_vmscan_lru_isolate_templ

    TP_ARGS(order, nr_requested, nr_scanned, nr_taken, nr_lumpy_taken, nr_lumpy_dirty, nr_lumpy_failed, isolate_mode)

    -);
    +)

    DEFINE_EVENT(mm_vmscan_lru_isolate_template, mm_vmscan_memcg_isolate,

    @@ -252,7 +252,7 @@ DEFINE_EVENT(mm_vmscan_lru_isolate_templ

    TP_ARGS(order, nr_requested, nr_scanned, nr_taken, nr_lumpy_taken, nr_lumpy_dirty, nr_lumpy_failed, isolate_mode)

    -);
    +)

    TRACE_EVENT(mm_vmscan_writepage,

    @@ -275,7 +275,7 @@ TRACE_EVENT(mm_vmscan_writepage,
    __entry->page,
    page_to_pfn(__entry->page),
    show_reclaim_flags(__entry->reclaim_flags))
    -);
    +)

    TRACE_EVENT(mm_vmscan_lru_shrink_inactive,

    @@ -308,7 +308,7 @@ TRACE_EVENT(mm_vmscan_lru_shrink_inactiv
    __entry->nr_scanned, __entry->nr_reclaimed,
    __entry->priority,
    show_reclaim_flags(__entry->reclaim_flags))
    -);
    +)


    #endif /* _TRACE_VMSCAN_H */


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