From 8b4454cba79445651050ea84bb411e5265d4651e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 25 Aug 2011 10:40:14 +0200 Subject: [PATCH] Rename syscall_fixup to syscall_fixup_on_sysenter * defs.h: Tweak comment. * syscall.c: Rename syscall_fixup to syscall_fixup_on_sysenter. (trace_syscall_entering): Use new finction name. Signed-off-by: Denys Vlasenko --- defs.h | 3 ++- syscall.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/defs.h b/defs.h index 90b4bbc3..affadff3 100644 --- a/defs.h +++ b/defs.h @@ -462,7 +462,8 @@ struct tcb { #ifdef LINUX /* x86 does not need TCB_WAITEXECVE. * It can detect SIGTRAP by looking at eax/rax. - * See "not a syscall entry (eax = %ld)\n" message in syscall_fixup(). + * See "not a syscall entry (eax = %ld)\n" message + * in syscall_fixup_on_sysenter(). */ # if defined(ALPHA) || defined(AVR32) || defined(SPARC) || defined(SPARC64) \ || defined(POWERPC) || defined(IA64) || defined(HPPA) \ diff --git a/syscall.c b/syscall.c index f4ae5083..db538098 100644 --- a/syscall.c +++ b/syscall.c @@ -1245,7 +1245,7 @@ known_scno(struct tcb *tcp) * ("????" etc) and bail out. */ static int -syscall_fixup(struct tcb *tcp) +syscall_fixup_on_sysenter(struct tcb *tcp) { #ifdef USE_PROCFS int scno = known_scno(tcp); @@ -1697,7 +1697,7 @@ trace_syscall_entering(struct tcb *tcp) if (res == 0) return res; if (res == 1) - res = syscall_fixup(tcp); + res = syscall_fixup_on_sysenter(tcp); if (res == 0) return res; if (res == 1) -- 2.40.0