-#if (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(3,5,0))
-LTTNG_TRACEPOINT_EVENT_MAP(replace_swap_token,
-
- mm_vmscan_replace_swap_token,
-
- TP_PROTO(struct mm_struct *old_mm,
- struct mm_struct *new_mm),
-
- TP_ARGS(old_mm, new_mm),
-
- TP_FIELDS(
- ctf_integer_hex(struct mm_struct *, old_mm, old_mm)
- ctf_integer(unsigned int, old_prio, old_mm ? old_mm->token_priority : 0)
- ctf_integer_hex(struct mm_struct *, new_mm, new_mm)
- ctf_integer(unsigned int, new_prio, new_mm->token_priority)
- )
-)
-
-LTTNG_TRACEPOINT_EVENT_CLASS(mm_vmscan_put_swap_token_template,
- TP_PROTO(struct mm_struct *swap_token_mm),
-
- TP_ARGS(swap_token_mm),
-
- TP_FIELDS(
- ctf_integer_hex(struct mm_struct*, swap_token_mm, swap_token_mm)
- )
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(mm_vmscan_put_swap_token_template, put_swap_token,
-
- mm_vmscan_put_swap_token,
-
- TP_PROTO(struct mm_struct *swap_token_mm),
- TP_ARGS(swap_token_mm)
-)
-
-LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(mm_vmscan_put_swap_token_template, disable_swap_token,
-
- mm_vmscan_disable_swap_token,
-
- TP_PROTO(struct mm_struct *swap_token_mm),
- TP_ARGS(swap_token_mm)
-)
-
-LTTNG_TRACEPOINT_EVENT_MAP(update_swap_token_priority,
-
- mm_vmscan_update_swap_token_priority,
-
- TP_PROTO(struct mm_struct *mm,
- unsigned int old_prio,
- struct mm_struct *swap_token_mm),
-
- TP_ARGS(mm, old_prio, swap_token_mm),
-
- TP_FIELDS(
- ctf_integer_hex(struct mm_struct *, mm, mm)
- ctf_integer(unsigned int, old_prio, old_prio)
- ctf_integer(unsigned int, new_prio, mm->token_priority)
- ctf_integer_hex(struct mm_struct *, swap_token_mm, swap_token_mm)
- ctf_integer(unsigned int, swap_token_prio, swap_token_mm ? swap_token_mm->token_priority : 0)
- )
-)
-#endif
-