From 4c6cb3c2d2ce969a16fe91b2a06ed78d68b33644 Mon Sep 17 00:00:00 2001 From: Alexander Lochmann Date: Tue, 5 Jul 2016 19:05:06 +0200 Subject: [PATCH 3/3] Linux kernel 3.4 does not define PR_SET_MM_ARG_START. Used KERNEL_VERSION to permit compilatioon of those macros --- tapset/linux/aux_syscalls.stp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tapset/linux/aux_syscalls.stp b/tapset/linux/aux_syscalls.stp index bec71c5..88db0b7 100644 --- a/tapset/linux/aux_syscalls.stp +++ b/tapset/linux/aux_syscalls.stp @@ -4599,12 +4599,14 @@ static const _stp_val_array const _stp_prctl_mm_option_list[] = { V(PR_SET_MM_START_STACK), V(PR_SET_MM_START_BRK), V(PR_SET_MM_BRK), +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,200) && LINUX_VERSION_CODE <= KERNEL_VERSION(3,4,0) V(PR_SET_MM_ARG_START), V(PR_SET_MM_ARG_END), V(PR_SET_MM_ENV_START), V(PR_SET_MM_ENV_END), V(PR_SET_MM_AUXV), V(PR_SET_MM_EXE_FILE), +#endif #ifdef PR_SET_MM_MAP V(PR_SET_MM_MAP), #endif -- 2.7.4