[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic system call question
Hi Mike,
> getrlimit(0x5, 0x6, 0x4010d098, 0x4000ae60, 0xbffffae4) = 30
> fstat64(0x1, 0xbffff2e0) = -1 ENOSYS (Function not implemented)
>
> Why is getrlimit being called, and why is fstat returning ENOSYS?
> Also, it does not appear that my system call "test" is not being
> called anywhere (except that getrlimit is returning the correct value
> of 30). Why?
I'd guess because strace has a static mapping from system call number
to name and you've upset that ordering by inserting in the middle of
the list.
Get the source of strace and see how it determines the syscall name and
signature of parameters, etc. If it pulls them out of an include file
and you've updated that with `test' then a re-compile should make it
work.
Caveat: All guesswork, I don't know this.
Ralph.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/