diff options
Diffstat (limited to 'include/trace/events/writeback.h')
-rw-r--r-- | include/trace/events/writeback.h | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index f345f66ae9d1..4e249b927eaa 100644 --- a/include/trace/events/writeback.h +++ b/include/trace/events/writeback.h | |||
@@ -81,6 +81,7 @@ DEFINE_EVENT(writeback_class, name, \ | |||
81 | TP_ARGS(bdi)) | 81 | TP_ARGS(bdi)) |
82 | 82 | ||
83 | DEFINE_WRITEBACK_EVENT(writeback_nowork); | 83 | DEFINE_WRITEBACK_EVENT(writeback_nowork); |
84 | DEFINE_WRITEBACK_EVENT(writeback_wake_background); | ||
84 | DEFINE_WRITEBACK_EVENT(writeback_wake_thread); | 85 | DEFINE_WRITEBACK_EVENT(writeback_wake_thread); |
85 | DEFINE_WRITEBACK_EVENT(writeback_wake_forker_thread); | 86 | DEFINE_WRITEBACK_EVENT(writeback_wake_forker_thread); |
86 | DEFINE_WRITEBACK_EVENT(writeback_bdi_register); | 87 | DEFINE_WRITEBACK_EVENT(writeback_bdi_register); |
@@ -96,8 +97,6 @@ DECLARE_EVENT_CLASS(wbc_class, | |||
96 | __field(long, nr_to_write) | 97 | __field(long, nr_to_write) |
97 | __field(long, pages_skipped) | 98 | __field(long, pages_skipped) |
98 | __field(int, sync_mode) | 99 | __field(int, sync_mode) |
99 | __field(int, nonblocking) | ||
100 | __field(int, encountered_congestion) | ||
101 | __field(int, for_kupdate) | 100 | __field(int, for_kupdate) |
102 | __field(int, for_background) | 101 | __field(int, for_background) |
103 | __field(int, for_reclaim) | 102 | __field(int, for_reclaim) |
@@ -153,6 +152,41 @@ DEFINE_WBC_EVENT(wbc_balance_dirty_written); | |||
153 | DEFINE_WBC_EVENT(wbc_balance_dirty_wait); | 152 | DEFINE_WBC_EVENT(wbc_balance_dirty_wait); |
154 | DEFINE_WBC_EVENT(wbc_writepage); | 153 | DEFINE_WBC_EVENT(wbc_writepage); |
155 | 154 | ||
155 | DECLARE_EVENT_CLASS(writeback_congest_waited_template, | ||
156 | |||
157 | TP_PROTO(unsigned int usec_timeout, unsigned int usec_delayed), | ||
158 | |||
159 | TP_ARGS(usec_timeout, usec_delayed), | ||
160 | |||
161 | TP_STRUCT__entry( | ||
162 | __field( unsigned int, usec_timeout ) | ||
163 | __field( unsigned int, usec_delayed ) | ||
164 | ), | ||
165 | |||
166 | TP_fast_assign( | ||
167 | __entry->usec_timeout = usec_timeout; | ||
168 | __entry->usec_delayed = usec_delayed; | ||
169 | ), | ||
170 | |||
171 | TP_printk("usec_timeout=%u usec_delayed=%u", | ||
172 | __entry->usec_timeout, | ||
173 | __entry->usec_delayed) | ||
174 | ); | ||
175 | |||
176 | DEFINE_EVENT(writeback_congest_waited_template, writeback_congestion_wait, | ||
177 | |||
178 | TP_PROTO(unsigned int usec_timeout, unsigned int usec_delayed), | ||
179 | |||
180 | TP_ARGS(usec_timeout, usec_delayed) | ||
181 | ); | ||
182 | |||
183 | DEFINE_EVENT(writeback_congest_waited_template, writeback_wait_iff_congested, | ||
184 | |||
185 | TP_PROTO(unsigned int usec_timeout, unsigned int usec_delayed), | ||
186 | |||
187 | TP_ARGS(usec_timeout, usec_delayed) | ||
188 | ); | ||
189 | |||
156 | #endif /* _TRACE_WRITEBACK_H */ | 190 | #endif /* _TRACE_WRITEBACK_H */ |
157 | 191 | ||
158 | /* This part must be outside protection */ | 192 | /* This part must be outside protection */ |