- TP_fast_assign(
- tp_assign(nr_migrated,
- nr_all -
- (migrate_rc >= 0 ? migrate_rc :
- ({
- unsigned long nr_failed = 0;
- struct list_head *page_lru;
-
- list_for_each(page_lru, migratepages)
- nr_failed++;
- nr_failed;
- })))
- tp_assign(nr_failed,
- ({
- unsigned long nr_failed = 0;
- struct list_head *page_lru;
-
- list_for_each(page_lru, migratepages)
- nr_failed++;
- nr_failed;
- }))
+ TP_FIELDS(
+ ctf_integer(unsigned long, nr_migrated, nr_all - tp_locvar->nr_failed)
+ ctf_integer(unsigned long, nr_failed, tp_locvar->nr_failed)