diff options
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/writeback.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index 0ce9f06f58c2..1261db3916cc 100644 --- a/include/trace/events/writeback.h +++ b/include/trace/events/writeback.h | |||
@@ -157,9 +157,9 @@ DEFINE_WBC_EVENT(wbc_writepage); | |||
157 | 157 | ||
158 | TRACE_EVENT(writeback_queue_io, | 158 | TRACE_EVENT(writeback_queue_io, |
159 | TP_PROTO(struct bdi_writeback *wb, | 159 | TP_PROTO(struct bdi_writeback *wb, |
160 | unsigned long *older_than_this, | 160 | struct wb_writeback_work *work, |
161 | int moved), | 161 | int moved), |
162 | TP_ARGS(wb, older_than_this, moved), | 162 | TP_ARGS(wb, work, moved), |
163 | TP_STRUCT__entry( | 163 | TP_STRUCT__entry( |
164 | __array(char, name, 32) | 164 | __array(char, name, 32) |
165 | __field(unsigned long, older) | 165 | __field(unsigned long, older) |
@@ -167,6 +167,7 @@ TRACE_EVENT(writeback_queue_io, | |||
167 | __field(int, moved) | 167 | __field(int, moved) |
168 | ), | 168 | ), |
169 | TP_fast_assign( | 169 | TP_fast_assign( |
170 | unsigned long *older_than_this = work->older_than_this; | ||
170 | strncpy(__entry->name, dev_name(wb->bdi->dev), 32); | 171 | strncpy(__entry->name, dev_name(wb->bdi->dev), 32); |
171 | __entry->older = older_than_this ? *older_than_this : 0; | 172 | __entry->older = older_than_this ? *older_than_this : 0; |
172 | __entry->age = older_than_this ? | 173 | __entry->age = older_than_this ? |