]> granicus.if.org Git - strace/commitdiff
Rename syscall_fixup to syscall_fixup_on_sysenter
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 25 Aug 2011 08:40:14 +0000 (10:40 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Fri, 26 Aug 2011 15:56:58 +0000 (17:56 +0200)
* 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 <dvlasenk@redhat.com>
defs.h
syscall.c

diff --git a/defs.h b/defs.h
index 90b4bbc307991a2c46cd67e8e5eda6adb5989ed1..affadff3ed6ee09cb47b17a768218f3ab3e701bc 100644 (file)
--- 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) \
index f4ae5083c191e9aa7b72528d625a0d9f7a7dc125..db538098aedaed18cc7c9c2c30a206b72856dacb 100644 (file)
--- 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)