|
From: trevor h. <tr...@ly...> - 2008-04-17 12:44:44
Attachments:
syslog.txt
|
Index: coregrind/m_syswrap/syswrap-amd64-linux.c
===================================================================
--- coregrind/m_syswrap/syswrap-amd64-linux.c (revision 7884)
+++ coregrind/m_syswrap/syswrap-amd64-linux.c (working copy)
@@ -1168,7 +1168,7 @@
GENXY(__NR_times, sys_times), // 100
PLAXY(__NR_ptrace, sys_ptrace), // 101
GENX_(__NR_getuid, sys_getuid), // 102
- // (__NR_syslog, sys_syslog), // 103
+ LINXY(__NR_syslog, sys_syslog), // 103
GENX_(__NR_getgid, sys_getgid), // 104
GENX_(__NR_setuid, sys_setuid), // 105
@@ -1253,7 +1253,7 @@
// (__NR_setdomainname, sys_setdomainname), // 171
GENX_(__NR_iopl, sys_iopl), // 172
LINX_(__NR_ioperm, sys_ioperm), // 173
- // (__NR_create_module, sys_ni_syscall), // 174
+ GENX_(__NR_create_module, sys_ni_syscall), // 174
// (__NR_init_module, sys_init_module), // 175
// (__NR_delete_module, sys_delete_module), // 176
Index: README_MISSING_SYSCALL_OR_IOCTL
===================================================================
--- README_MISSING_SYSCALL_OR_IOCTL (revision 7884)
+++ README_MISSING_SYSCALL_OR_IOCTL (working copy)
@@ -46,16 +46,16 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Removing the debug printing clutter, it looks like this:
- PRE(time)
+ PRE(sys_time)
{
/* time_t time(time_t *t); */
PRINT("time ( %p )",arg1);
if (arg1 != (UWord)NULL) {
- PRE_MEM_WRITE( "time", arg1, sizeof(time_t) );
+ PRE_MEM_WRITE( "time", arg1, sizeof(vki_time_t) );
}
}
- POST(time)
+ POST(sys_time)
{
if (arg1 != (UWord)NULL) {
POST_MEM_WRITE( arg1, sizeof(vki_time_t) );
@@ -134,8 +134,7 @@
dependant ones (in syswrap-$(PLATFORM)-linux.c).
The *XY variant if it requires a PRE() and POST() function, and
the *X_ variant if it only requires a PRE()
- function. The 2nd arg of these macros indicate if the syscall
- could possibly block.
+ function.
If you find this difficult, read the wrappers for other syscalls
for ideas. A good tip is to look for the wrapper for a syscall
|
|
From: Bart V. A. <bar...@gm...> - 2008-04-26 11:01:47
|
On Thu, Apr 17, 2008 at 2:44 PM, trevor hansen <tr...@ly...> wrote: > > On Ubuntu 7.10 /bin/lsmod & /bin/dmesg respectively use create_module & > syslog. This patch wires up the syscall wrappers which have already been > implemented for other platforms. create_module has been removed from the > kernel, but is still being called for some reason by lsmod. Thanks for the patch. I have commited (a slightly modified version of) your patch. Can you please give it a try ? Bart. |