Date: Thu, 4 Dec 2008 21:41:17 +0100 From: "=?ISO-8859-1?Q?Marius_N=FCnnerich?=" <marius@nuenneri.ch> To: freebsd-geom@freebsd.org, phk@freebsd.org Subject: DTrace probes for geom_kern, geom_io and geom_event Message-ID: <b649e5e0812041241y143254e0k5e1bae385fc9ae2b@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I wrote a bunch of DTrace probes for the core geom files mentioned in the subject. The patch for current is available at http://nuenneri.ch/freebsd/geom_probes.patch Anyone interested in testing them? Just apply the patch, add options KDTRACE_HOOKS to your kernel and build it like this: # make WITH_CTF=1 KERNCONF=YOURKERNEL buildkernel installkernel After reboot you can # kldload dtraceall and see the new probes with # dtrace -lP geom A sample script: #!/usr/sbin/dtrace -s #pragma D option quiet geom::: { @geom[execname, probemod, probefunc, probename] = count(); @geom_all[execname, probemod, probefunc, probename] = count(); } tick-10sec { normalize(@geom, 10) printa("%@8u %@8u %12s %s:%s:%s\n", @geom_all, @geom); printf("\n"); clear(@geom); } This is hand copied. You can chmod 755 and run it. I'm not sure how to handle the opt_kdtrace.h case in geom.h, see patch line 842. Any comments on the patch? @phk: Are you interested in committing this when there are no complaints? Are you interested in more probes? Kind regards Marius
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e0812041241y143254e0k5e1bae385fc9ae2b>