How to exclude ipc calls

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


Hi,

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 
6
$ strace -etrace='!ipc' -o '|grep -c ^...ctl >&2' ipcs >/dev/null 
0

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


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20111125/41a13552/attachment.bin>


More information about the Strace-devel mailing list