|
@@ -16,6 +16,23 @@
|
|
#include <sys/mman.h>
|
|
#include <sys/mman.h>
|
|
#include <linux/futex.h>
|
|
#include <linux/futex.h>
|
|
|
|
|
|
|
|
+/* For older distros: */
|
|
|
|
+#ifndef MAP_STACK
|
|
|
|
+# define MAP_STACK 0x20000
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef MADV_HWPOISON
|
|
|
|
+# define MADV_HWPOISON 100
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef MADV_MERGEABLE
|
|
|
|
+# define MADV_MERGEABLE 12
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifndef MADV_UNMERGEABLE
|
|
|
|
+# define MADV_UNMERGEABLE 13
|
|
|
|
+#endif
|
|
|
|
+
|
|
static size_t syscall_arg__scnprintf_hex(char *bf, size_t size,
|
|
static size_t syscall_arg__scnprintf_hex(char *bf, size_t size,
|
|
unsigned long arg,
|
|
unsigned long arg,
|
|
u8 arg_idx __maybe_unused,
|
|
u8 arg_idx __maybe_unused,
|