How to exclude ipc calls

Dmitry V. Levin ldv at
Thu Nov 24 23:16:27 UTC 2011


On Thu, Nov 24, 2011 at 11:51:19PM +0100, Alexander Kriegisch wrote:
> I would like to user an exception like "-e trace=!ipc", but that option does not work. It seems to be a bug, but if it is not, please tell me what I am doing wrong. Exceptions for other calls work, but not for ipc - maybe because it is also the name of a category? 

$ strace -etrace='ipc' -o '|grep -c ^...ctl >&2' ipcs >/dev/null 
$ strace -etrace='!ipc' -o '|grep -c ^...ctl >&2' ipcs >/dev/null 

I suppose you have a problem with quoting '!' in your shell.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <>

More information about the Strace-devel mailing list