How to exclude ipc calls

Alexander Kriegisch kriegaex at freetz.org
Fri Nov 25 16:49:01 UTC 2011


Dear Dmitry,

thanks for lecturing me about top-posting. As so many things in life, it
is a matter of personal preference and not a generally accepted rule.
But I do like to make it more convenient for you, so I am trying to
remember not to top-post anymore when conversing with you.

> These "...ctl()" calls used by ipcs are definitely ipc calls,
> aren't they?

If you say so, they are. I know very little about Linux syscalls, as I
said.

> You can use
> strace -e trace='!ipc'
> to hide all IPC related syscalls (shm*, sem* and msg*).

Thank you very much, but have you read my original question? I want to
specifically hide calls like these:

> ipc(0x1, 0x8001, 0x1, 0, 0x2abe55cc, 0x2aab25e0) = 0
> ipc(0x1, 0, 0x1, 0, 0x2abe55c4, 0x2aab25e0) = 0
> ipc(0x1, 0x10002, 0x1, 0, 0x2abe55cc, 0x2aab25e0) = 0
> ipc(0x1, 0, 0x1, 0, 0x2abe55d4, 0x2aab25e0) = 0
> ipc(0x1, 0x8001, 0x1, 0, 0x2abe55d4, 0x2aab25e0) = 0
> ipc(0x1, 0, 0x1, 0, 0x2abe55c4, 0x2aab25e0) = 0
> ipc(0x1, 0x10002, 0x1, 0, 0x2abe55d4, 0x2aab2820) = 0
> ipc(0x1, 0, 0x1, 0, 0x2abe55d4, 0x2aab25e0) = 0

They keep cluttering my strace logs. If I try something like

strace -e trace='!ipc' -p 17094 -q 2>&1 | grep ipc > ipc.log

they still occur in the log in the same order of magnitude as before.

> This is not what I see on x86, x86-64 and arm.  What's the strace
> version and architecture you are talking about?

> # uname -a; strace -V
> Linux fritz.fonwlan.box 2.6.19.2 #1 Mon Nov 29 14:50:31 CET 2010 mips GNU/Linux
> strace -- version 4.6

So we are talking about mipsel here.

If I can assist with more info about my system (a DSL and WLAN router
called AVM Fritz!Box 7270), please let me know.

Kind regards
-- 
Alexander Kriegisch (kriegaex)
http://freetz.org




More information about the Strace-devel mailing list