summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Macnak <rmacnak@google.com>2020-05-01 11:50:16 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2020-07-06 01:46:48 -0700
commitc1bcc412ba4a94deaf8c3230519ecb4dda60557d (patch)
treec5c8dc43fe059b2af95a7e0fc5377d74be49030d /src
parent50f89afaed3d07d384fa8d86c98460ccff1e870e (diff)
downloadgperftools-c1bcc412ba4a94deaf8c3230519ecb4dda60557d.tar.gz
Don't try to mark esp as clobbered in linux syscall support.
Compare 9e5b1628737c67b4587f937164572774592978c4, issue #1076
Diffstat (limited to 'src')
-rw-r--r--src/base/linux_syscall_support.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h
index e609559..5b9b71b 100644
--- a/src/base/linux_syscall_support.h
+++ b/src/base/linux_syscall_support.h
@@ -1066,7 +1066,7 @@ struct kernel_stat {
"pop %%ebx\n" \
CFI_ADJUST_CFA_OFFSET(-4) \
args \
- : "esp", "memory"); \
+ : "memory"); \
LSS_RETURN(type,__res)
#undef _syscall0
#define _syscall0(type,name) \
@@ -1123,7 +1123,7 @@ struct kernel_stat {
: "i" (__NR_##name), "ri" ((long)(arg1)), \
"c" ((long)(arg2)), "d" ((long)(arg3)), \
"S" ((long)(arg4)), "D" ((long)(arg5)) \
- : "esp", "memory"); \
+ : "memory"); \
LSS_RETURN(type,__res); \
}
#undef _syscall6
@@ -1145,7 +1145,7 @@ struct kernel_stat {
: "i" (__NR_##name), "0" ((long)(&__s)), \
"c" ((long)(arg2)), "d" ((long)(arg3)), \
"S" ((long)(arg4)), "D" ((long)(arg5)) \
- : "esp", "memory"); \
+ : "memory"); \
LSS_RETURN(type,__res); \
}
LSS_INLINE int LSS_NAME(clone)(int (*fn)(void *), void *child_stack,
@@ -1231,7 +1231,7 @@ struct kernel_stat {
: "0"(-EINVAL), "i"(__NR_clone),
"m"(fn), "m"(child_stack), "m"(flags), "m"(arg),
"m"(parent_tidptr), "m"(newtls), "m"(child_tidptr)
- : "esp", "memory", "ecx", "edx", "esi", "edi");
+ : "memory", "ecx", "edx", "esi", "edi");
LSS_RETURN(int, __res);
}