aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/vmscan.h
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-08-09 20:19:55 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:45:03 -0400
commitcf4dcc3e9b374e1b61a7c22faf868707ce78d6a9 (patch)
treeeb46339e98467b74a089d596b63d79441408caec /include/trace/events/vmscan.h
parent4dc4b3d971b23e12d483ba9f3b93b648c54b298a (diff)
vmscan: convert direct reclaim tracepoint to DEFINE_TRACE
Mel Gorman recently added some vmscan tracepoints. Unfortunately they are covered only global reclaim. But we want to trace memcg reclaim too. Thus, this patch convert them to DEFINE_TRACE macro. it help to reuse tracepoint definition for other similar usage (i.e. memcg). This patch have no functionally change. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/trace/events/vmscan.h')
-rw-r--r--include/trace/events/vmscan.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/trace/events/vmscan.h b/include/trace/events/vmscan.h
index 69789dc72100..f9f2747bc1c1 100644
--- a/include/trace/events/vmscan.h
+++ b/include/trace/events/vmscan.h
@@ -86,7 +86,7 @@ TRACE_EVENT(mm_vmscan_wakeup_kswapd,
86 __entry->order) 86 __entry->order)
87); 87);
88 88
89TRACE_EVENT(mm_vmscan_direct_reclaim_begin, 89DECLARE_EVENT_CLASS(mm_vmscan_direct_reclaim_begin_template,
90 90
91 TP_PROTO(int order, int may_writepage, gfp_t gfp_flags), 91 TP_PROTO(int order, int may_writepage, gfp_t gfp_flags),
92 92
@@ -110,7 +110,15 @@ TRACE_EVENT(mm_vmscan_direct_reclaim_begin,
110 show_gfp_flags(__entry->gfp_flags)) 110 show_gfp_flags(__entry->gfp_flags))
111); 111);
112 112
113TRACE_EVENT(mm_vmscan_direct_reclaim_end, 113DEFINE_EVENT(mm_vmscan_direct_reclaim_begin_template, mm_vmscan_direct_reclaim_begin,
114
115 TP_PROTO(int order, int may_writepage, gfp_t gfp_flags),
116
117 TP_ARGS(order, may_writepage, gfp_flags)
118);
119
120
121DECLARE_EVENT_CLASS(mm_vmscan_direct_reclaim_end_template,
114 122
115 TP_PROTO(unsigned long nr_reclaimed), 123 TP_PROTO(unsigned long nr_reclaimed),
116 124
@@ -127,6 +135,13 @@ TRACE_EVENT(mm_vmscan_direct_reclaim_end,
127 TP_printk("nr_reclaimed=%lu", __entry->nr_reclaimed) 135 TP_printk("nr_reclaimed=%lu", __entry->nr_reclaimed)
128); 136);
129 137
138DEFINE_EVENT(mm_vmscan_direct_reclaim_end_template, mm_vmscan_direct_reclaim_end,
139
140 TP_PROTO(unsigned long nr_reclaimed),
141
142 TP_ARGS(nr_reclaimed)
143);
144
130TRACE_EVENT(mm_vmscan_lru_isolate, 145TRACE_EVENT(mm_vmscan_lru_isolate,
131 146
132 TP_PROTO(int order, 147 TP_PROTO(int order,