|
@@ -53,11 +53,6 @@ int auxtrace_mmap__mmap(struct auxtrace_mmap *mm,
|
|
|
{
|
|
|
struct perf_event_mmap_page *pc = userpg;
|
|
|
|
|
|
-#if BITS_PER_LONG != 64 && !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
|
|
|
- pr_err("Cannot use AUX area tracing mmaps\n");
|
|
|
- return -1;
|
|
|
-#endif
|
|
|
-
|
|
|
WARN_ONCE(mm->base, "Uninitialized auxtrace_mmap\n");
|
|
|
|
|
|
mm->userpg = userpg;
|
|
@@ -73,6 +68,11 @@ int auxtrace_mmap__mmap(struct auxtrace_mmap *mm,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#if BITS_PER_LONG != 64 && !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT)
|
|
|
+ pr_err("Cannot use AUX area tracing mmaps\n");
|
|
|
+ return -1;
|
|
|
+#endif
|
|
|
+
|
|
|
pc->aux_offset = mp->offset;
|
|
|
pc->aux_size = mp->len;
|
|
|
|