X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-events.c;h=71b530177a3c22c9cd0b6cae032c5172130cbc31;hb=156a3977f8fa114924d7bbd2bd04c94fd2ac0649;hp=e1364dd5fbd9b6692bf5055f3be07048b1c951b7;hpb=8967b2a36929168e37941c53b5dd387f70699c7a;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index e1364dd5..71b53017 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -2023,8 +2023,8 @@ int _lttng_event_header_declare(struct lttng_session *session) * taken at start of trace. * Yes, this is only an approximation. Yes, we can (and will) do better * in future versions. - * Return 0 if offset is negative. It may happen if the system sets - * the REALTIME clock to 0 after boot. + * This function may return a negative offset. It may happen if the + * system sets the REALTIME clock to 0 after boot. */ static int64_t measure_clock_offset(void) @@ -2269,6 +2269,9 @@ static int __init lttng_events_init(void) if (ret) return ret; ret = wrapper_get_pfnblock_flags_mask_init(); + if (ret) + return ret; + ret = wrapper_get_pageblock_flags_mask_init(); if (ret) return ret; ret = lttng_context_init();