[PATCH v3] decode extend getsockopt/setsockopt options

Dmitry V. Levin ldv at altlinux.org
Wed Aug 26 21:23:58 UTC 2015


On Thu, Aug 20, 2015 at 09:22:08AM -0400, Mike Frysinger wrote:
> On 20 Aug 2015 14:42, Dmitry V. Levin wrote:
> > On Wed, Aug 19, 2015 at 01:29:27PM -0400, Mike Frysinger wrote:
> > > * util.c (printxval): Rename to ...
> > > (printxvals): ... this.  Rewrite to be varargs based.
> > 
> > OK, let's have two separate functions so that
> > the most frequent use case won't be penalized.
> 
> so i made a small file:
> main() { int i; for (i = 0; i < 1000000; ++i) arch_prctl(0, 0); }
> 
> then i ran it like so:
> $ time strace -o /dev/null ./a.out
> 
> i didn't observe significant diff in speed between two funcs and one varargs.
> the new version took 17.510s on average while the old one took 17.478s.  that's
> like 30ns per syscall.  i think we can live with that ;).

Thanks, pushed this edition of the patch.


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


More information about the Strace-devel mailing list