[RFT] llquantize for FreeBSD's dtrace

Pedro Giffuni pfg at freebsd.org
Tue Jun 26 19:55:50 UTC 2012



--- Mar 26/6/12, Fabian Keil <freebsd-listen at fabiankeil.de> ha scritto:

> Pedro Giffuni <pfg at freebsd.org> wrote:
> 
> > --- Mar 26/6/12, Mark Peek <mp at FreeBSD.org>
> ha scritto:
> 
> > > Try this, change the assert on line 1429 in file
> dt_cc.c
> > > from:
> > > 
> > > assert(!(arg & (UINT16_MAX <<
> args[i].shift)));
> > > 
> > > to
> > > 
> > > assert(!(arg & ((uint64_t)UINT16_MAX <<
> > > args[i].shift)));
> > > 
> > 
> > This certainly looks correct. Thanks Mark !
> > 
> > I updated the patch:
> > 
> > http://people.freebsd.org/~pfg/patches/patch-dtrace-llquantize
> 
> Thanks a lot. Seems to work for me:
> 

Nice!

I don't use Dtrace though ... so I'll ask:

Any objections against committing it? :).

Pedro.




More information about the freebsd-current mailing list