How to exclude ipc calls
Dmitry V. Levin
ldv at altlinux.org
Sat Nov 26 13:58:23 UTC 2011
On Sat, Nov 26, 2011 at 01:51:28PM +0100, Alexander Kriegisch wrote:
> On Fri, Nov 25, 2011 at 10:56:51PM +0400, Dmitry V. Levin wrote:
> > There is something wrong with strace on your platform, otherwise you
> > would never see this ipc() syscall. I'm not an expert with linux
> > mips zoo, but it looks like ipc() syscall multiplexer is actually in
> > use in your system while strace expects separate IPC syscalls. I can
> > suggest a workaround, but it won't implement proper IPC subcall
> > decoding on your platform unless somebody with better knowledge about
> > it will come up with a patch.
> > The workaround is to teach strace that ipc() is a IPC syscall:
> > $ sed -i '/"ipc"/ s/0,/TI,/' linux/mips/syscallent.h
> > With this change applied, strace -e trace='!ipc' will hide ipc() syscall.
> Maybe there is something wrong with strace on my platform, I have no
> idea and am not the author of the tool. But I can confirm that your
> latest change
> fixes the problem in my case.
> May I know if you intend to keep the change in the code base?
Yes, I do.
> I mean, is
> it really just a workaround or does it solve a real problem? I guess it
> does, because you committed the change for several (all?) platforms.
Assuming that ipc() is a IPC syscall, it is a correct change that fixes
your problem. However, strace still lacks IPC subcall decoding on mips,
so the change is far from complete.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the Strace-devel