#include "../ltt-events.h"
#include "../wrapper/ringbuffer/frontend_types.h"
#include "../wrapper/ftrace.h"
+#include "../wrapper/vmalloc.h"
#include "../ltt-tracer.h"
static
if (!event->u.ftrace.symbol_name)
goto name_error;
+ /* Ensure the memory we just allocated don't trigger page faults */
+ wrapper_vmalloc_sync_all();
+
ret = wrapper_register_ftrace_function_probe(event->u.ftrace.symbol_name,
<tng_ftrace_ops, event);
if (ret)
/* This module is permanent. */
int lttng_ftrace_init(void)
{
+ wrapper_vmalloc_sync_all();
return 0;
}
module_init(lttng_ftrace_init)