DTrace (or other monitor) access to LBA of a block device

Artem Belevich fbsdlist at src.cx
Sun Dec 5 20:27:02 UTC 2010


On Sun, Dec 5, 2010 at 11:31 AM, Andriy Gapon <avg at freebsd.org> wrote:
>> By the way, in order for this to work one would need r207057 applied
>> to -8. Any chance that could be MFC'ed?
>>
>> http://svn.freebsd.org/viewvc/base?view=revision&revision=207057
>
> Nice catch.
>
> Alexander,
> can that commit be trivially MFC-ed or are there any complications around this
> change?

r207057 seems to depend on r206082:
http://svn.freebsd.org/viewvc/base?view=revision&revision=206082

I'm using simpler version of changes equivalent to those in r207057
that I've picked up on one of freebsd lists some time back:

diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 56ef3ef..e9b5879 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -132,6 +132,10 @@ CFLAGS+=   -mlongcall -fno-omit-frame-pointer
 CFLAGS+=       -G0 -fno-pic -mno-abicalls -mlong-calls
 .endif

+.if defined(DEBUG) || defined(DEBUG_FLAGS)
+CTFFLAGS+=     -g
+.endif
+
 .if defined(FIRMWS)
 .if !exists(@)
 ${KMOD:S/$/.c/}: @
@@ -197,6 +201,9 @@ ${KMOD}.kld: ${OBJS}
 ${FULLPROG}: ${OBJS}
 .endif
        ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS}
+.if defined(CTFMERGE)
+       ${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${OBJS}
+.endif
 .if defined(EXPORT_SYMS)
 .if ${EXPORT_SYMS} != YES
 .if ${EXPORT_SYMS} == NO

--Artem


More information about the freebsd-stable mailing list