LWN.net Logo

Announcing a new utility: 'trace'

Announcing a new utility: 'trace'

Posted Nov 17, 2010 9:45 UTC (Wed) by rvfh (subscriber, #31018)
In reply to: Announcing a new utility: 'trace' by foom
Parent article: Announcing a new utility: 'trace'

> firefox/28132 ( 0.010 ms): mmap(addr: 0x0, len: 0x1000, prot: 0x3, flags: 0x22, fd: 0xffffffff, off: 0x0) => 0x7fb3f442c000

> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb3f442c000 rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}, 8) = 0

Looks better in trace to me!
addr: 0x0 <=> NULL
len: 0x1000 <=> 4096 (which is 0x1000 in hex)
You can decode the protocol/flags given the value (I know it's more effort), and 0xffffffff is -1


(Log in to post comments)

Announcing a new utility: 'trace'

Posted Nov 17, 2010 15:01 UTC (Wed) by mpr22 (subscriber, #60784) [Link]

You can decode the protocol/flags given the value (I know it's more effort)

It's not just more effort, it's something the machine can do better than me.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds