[dtrace-discuss] string comparison using regexp

Pavel Filipensky
Wed, 16 May 2007 13:00:44 -0000

Hi,

is it possible in dtrace to use regexp or wildcards?
I would like to trace fop_ probes if the vnode v_path
contains matches some regexp..

E.g. I would like to see fop operations on files which have foo in their
v_path:

::fop_*:entry
/probefunc != "fop_open" && ((vnode_t *)arg0)->v_path ==
"*foo*"/
{
...
}


Thanks,
Pavel