- TP_STRUCT__entry(
- __array_text(char, name, 32)
- __field(long, nr_to_write)
- __field(long, pages_skipped)
- __field(int, sync_mode)
- __field(int, for_kupdate)
- __field(int, for_background)
- __field(int, for_reclaim)
- __field(int, range_cyclic)
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
- __field(int, more_io)
- __field(unsigned long, older_than_this)
-#endif
- __field(long, range_start)
- __field(long, range_end)
- ),
-
- TP_fast_assign(
- tp_memcpy(name, dev_name(bdi->dev), 32)
- tp_assign(nr_to_write, wbc->nr_to_write)
- tp_assign(pages_skipped, wbc->pages_skipped)
- tp_assign(sync_mode, wbc->sync_mode)
- tp_assign(for_kupdate, wbc->for_kupdate)
- tp_assign(for_background, wbc->for_background)
- tp_assign(for_reclaim, wbc->for_reclaim)
- tp_assign(range_cyclic, wbc->range_cyclic)
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0))
- tp_assign(more_io, wbc->more_io)
- tp_assign(older_than_this, wbc->older_than_this ?
- *wbc->older_than_this : 0)
-#endif
- tp_assign(range_start, (long)wbc->range_start)
- tp_assign(range_end, (long)wbc->range_end)
- ),
-
- TP_printk("bdi %s: towrt=%ld skip=%ld mode=%d kupd=%d "
+ TP_FIELDS(
+ ctf_array_text(char, name, dev_name(bdi->dev), 32)
+ ctf_integer(long, nr_to_write, wbc->nr_to_write)
+ ctf_integer(long, pages_skipped, wbc->pages_skipped)
+ ctf_integer(int, sync_mode, wbc->sync_mode)
+ ctf_integer(int, for_kupdate, wbc->for_kupdate)
+ ctf_integer(int, for_background, wbc->for_background)
+ ctf_integer(int, for_reclaim, wbc->for_reclaim)
+ ctf_integer(int, range_cyclic, wbc->range_cyclic)