diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2015-08-12 22:36:02 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2015-08-12 22:36:02 +0000 |
| commit | fa4d80aacbc26c4cb733b42af06bcc8a8f6a602f (patch) | |
| tree | e3e121f8ad2f0e4a7d84883ca081cb97603641cc /lib/libzpool | |
| parent | 9210e57c991f7984e818965732fe157e9c5c3f93 (diff) | |
Notes
Diffstat (limited to 'lib/libzpool')
| -rw-r--r-- | lib/libzpool/common/sys/zfs_context.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libzpool/common/sys/zfs_context.h b/lib/libzpool/common/sys/zfs_context.h index b1154fb71bfb..6216006dd487 100644 --- a/lib/libzpool/common/sys/zfs_context.h +++ b/lib/libzpool/common/sys/zfs_context.h @@ -116,8 +116,18 @@ extern int aok; /* * DTrace SDT probes have different signatures in userland than they do in - * kernel. If they're being used in kernel code, re-define them out of + * the kernel. If they're being used in kernel code, re-define them out of * existence for their counterparts in libzpool. + * + * Here's an example of how to use the set-error probes in userland: + * zfs$target:::set-error /arg0 == EBUSY/ {stack();} + * + * Here's an example of how to use DTRACE_PROBE probes in userland: + * If there is a probe declared as follows: + * DTRACE_PROBE2(zfs__probe_name, uint64_t, blkid, dnode_t *, dn); + * Then you can use it as follows: + * zfs$target:::probe2 /copyinstr(arg0) == "zfs__probe_name"/ + * {printf("%u %p\n", arg1, arg2);} */ #ifdef DTRACE_PROBE |
