Date: Sun, 11 Jun 2006 14:53:51 +0200 From: Marius Nuennerich <marius.nuennerich@gmx.net> To: current@freebsd.org Cc: John Birrell <jb@what-creek.com> Subject: DTrace SDT Provider not working? Message-ID: <20060611145351.221ec001@sol.hackerzberg.local>
next in thread | raw e-mail | index | archive | help
--MP_=gzHPlWNL+3VOEIdNbLqHKY
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi John, all!
I tried to add the SDT Hooks for callout(9), see attached patch.
> # dtrace -l -f callout
> ID PROVIDER MODULE FUNCTION NAME
> 6 sdt kernel callout entry
> 7 sdt kernel callout return
however, a simple
> # dtrace -n 'sdt:kernel:callout:entry{printf("1");}'
prints that a probe is matched but nothing else, same for
sdt:kernel:linker_load_module:entry and kldload'ing a module.
I use the snapshot code you provided.
Any idea where to look next?
Thank you very much for your work!
regards
Marius
--MP_=gzHPlWNL+3VOEIdNbLqHKY
Content-Type: text/x-patch; name=kern_timeout.c.diff
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=kern_timeout.c.diff
--- kern_timeout.c.orig Sun Jun 11 13:18:07 2006
+++ kern_timeout.c Sun Jun 11 13:31:04 2006
@@ -45,6 +45,7 @@
#include <sys/ktr.h>
#include <sys/lock.h>
#include <sys/mutex.h>
+#include <sys/sdt.h>
#include <sys/proc.h>
#include <sys/sysctl.h>
@@ -268,7 +269,9 @@
binuptime(&bt1);
#endif
THREAD_NO_SLEEPING();
+ SDT_PROBE(kernel, callout, entry, c, 0, 0, 0, 0);
c_func(c_arg);
+ SDT_PROBE(kernel, callout, return, c, 0, 0, 0, 0);
THREAD_SLEEPING_OK();
#ifdef DIAGNOSTIC
binuptime(&bt2);
--MP_=gzHPlWNL+3VOEIdNbLqHKY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060611145351.221ec001>
