git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
arch
/
um
/
kernel
/
skas
/
syscall.c
diff --git
a/arch/um/kernel/skas/syscall.c
b/arch/um/kernel/skas/syscall.c
index
0ae4eea
..
51fb940
100644
(file)
--- a/
arch/um/kernel/skas/syscall.c
+++ b/
arch/um/kernel/skas/syscall.c
@@
-18,7
+18,11
@@
void handle_syscall(union uml_pt_regs *r)
struct pt_regs *regs = container_of(r, struct pt_regs, regs);
long result;
int syscall;
struct pt_regs *regs = container_of(r, struct pt_regs, regs);
long result;
int syscall;
+#ifdef UML_CONFIG_SYSCALL_DEBUG
+ int index;
+ index = record_syscall_start(UPT_SYSCALL_NR(r));
+#endif
syscall_trace(r, 0);
current->thread.nsyscalls++;
syscall_trace(r, 0);
current->thread.nsyscalls++;
@@
-40,4
+44,7
@@
void handle_syscall(union uml_pt_regs *r)
REGS_SET_SYSCALL_RETURN(r->skas.regs, result);
syscall_trace(r, 1);
REGS_SET_SYSCALL_RETURN(r->skas.regs, result);
syscall_trace(r, 1);
+#ifdef UML_CONFIG_SYSCALL_DEBUG
+ record_syscall_end(index, result);
+#endif
}
}