X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fcompaction.h;fp=instrumentation%2Fevents%2Flttng-module%2Fcompaction.h;h=771da7dbcb3b2825601a5e89d7bebe4aea283240;hb=265822ae7c567f883f17d89316b5540eb4447d6f;hp=2c2584672831eff20367531995ada6528667d989;hpb=43803cf2bdfe205fe0e426f7e93507d722ba1feb;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/compaction.h b/instrumentation/events/lttng-module/compaction.h index 2c258467..771da7db 100644 --- a/instrumentation/events/lttng-module/compaction.h +++ b/instrumentation/events/lttng-module/compaction.h @@ -114,7 +114,7 @@ LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages, unsigned long nr_failed; ), - TP_code( + TP_code_pre( tp_locvar->nr_failed = 0; { @@ -131,7 +131,9 @@ LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages, TP_FIELDS( ctf_integer(unsigned long, nr_migrated, nr_all - tp_locvar->nr_failed) ctf_integer(unsigned long, nr_failed, tp_locvar->nr_failed) - ) + ), + + TP_code_post() ) #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) */ LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,