tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dtrace and ZFS update



from before, cred seems messy

 #define	CRED()		(kauth_cred_get())
 #define	kcred		cred0

elsewhere

 #define	kcred		NULL
 #define	CRED()		NULL


+uint64_t
+kmem_size(void)
+{
+
+	return (uint64_t)1 << 31;
+}

That sounds like it might blow up on low memory

You also have a duplicate definition now:

-#define	kmem_size()		(physmem * PAGESIZE)
+#define	kmem_size()		((uint64_t)physmem * PAGESIZE)


+DTRACE_OPTS?=	-fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-ipa-sra -fno-ipa-icf

Make this conditional on DTrace?

+COPTS.dtrace.c += -Wno-format

Should probably fix those


Home | Main Index | Thread Index | Old Index