On Tue, Jun 16, 2009 at 03:10:22PM -0300, Rafael Vanoni wrote: > Jonathan Adams wrote: > >On Tue, Jun 16, 2009 at 01:32:29PM -0300, Rafael Vanoni wrote: > >>Jonathan Adams wrote: > >>># dtrace -n' > >>> fbt::kmem_alloc:return > >>> /((uintptr_t)caller - (uintptr_t)&`poll_common) < sizeof > >>> (`poll_common)/ > >>> {stack()} > >>>' > >>> > >>>(replace kmem_alloc and poll_common with the functions of interest, of > >>>course) > >>>Cheers, > >>>- jonathan > >>Ah, very cool. Didn't know about caller. > >> > >>Out of curiosity, why are you casting it ? > > > >Because you can't subtract a pointer from an integer, or two incompatible > >pointer types? > > > >Cheers, > >- jonathan > > > > Yes, but isn't caller already declared as uintptr_t ?
Oh. Probably. caller() is a caddr_t in the kernel, hence my confusion. Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org