CHIAN-PHON LIN
2005-Nov-14 21:46 UTC
[dtrace-discuss] How to exclude multiple probe patterns ?
Hi, Suppose we have thousands of functions in a module but only want to exclude a few patterns. In this case, it becomes impractical trying to list all probe patterns except those few you want to exclude. One way to deal with this is to use [! to exclude certain characters. For example, if we construct the clause below, we can exclude function patterns with leading "xyz": pid$target:mymod:[!x]*:entry, pid$target:mymod:[x][!y]*:entry, pid$target:mymod:[x][y][!z]*:entry { }>From this example, we know it is possible to exclude singlepattern. But, to me, it becomes a puzzle if we want to exclude multiple patterns such as excluding additional pattern with leading "abc". What should we do? or Do we have simpler and more clever alternatives? THX. -- ************************************************ * C P Lin, Common Technology Project Lead. * * Sun Microsystems Inc. * * E-Mail: c.lin at sun.com * * Address: 4150 Network Circle, M/S UMPK12-330 * * Santa Clara, CA 95054 * * Phone: 650/352-4967 Fax: 650/786-7816 * ************************************************