Document last supported kernel version for stable-2.11 branch
[lttng-modules.git] / lttng-context-callstack.c
index 4a4400408fcac6122382bbcb60abbe5a73a719a3..ba35a3940845399cfa73a605ea3d59c75002fc3c 100644 (file)
 #include "wrapper/vmalloc.h"
 #include "lttng-tracer.h"
 
+#ifdef CONFIG_ARCH_STACKWALK
+#include "lttng-context-callstack-stackwalk-impl.h"
+#else
 #include "lttng-context-callstack-legacy-impl.h"
+#endif
 
 static
 void field_data_free(struct field_data *fdata)
@@ -137,7 +141,7 @@ int __lttng_add_callstack_generic(struct lttng_ctx **ctx,
        field->record = lttng_callstack_record;
        field->priv = fdata;
        field->destroy = lttng_callstack_destroy;
-       wrapper_vmalloc_sync_all();
+       wrapper_vmalloc_sync_mappings();
        return 0;
 
 error_create:
This page took 0.024282 seconds and 4 git commands to generate.