Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Get a list of unique dtrace providers UNIX
I just got the DTrace book from Amazon and wanted to get a list of providers for DTrace that OSX supports. (DTrace is a probe/profiling tool created by Sun that came with Mac OS X starting with Leopard.)

So I played with dtrace -l until I got the output to be just a sorted unique list of the providers (it also strips numbers off to keep the list concise).

Here is the resulting command:
sudo dtrace -l | perl -pe 's/^.*?\S+\s+(\S+?)([0-9]|\s).*/\1/' | sort | uniq

[crarko adds: I haven't tested this one.]
  • Currently 3.40 / 5
  You rated: 2 / 5 (5 votes cast)

Get a list of unique dtrace providers | 1 comments | Create New Account
Click here to return to the 'Get a list of unique dtrace providers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get a list of unique dtrace providers
Authored by: Andrew J Freyer on Apr 19, '11 08:15:19AM

FYI the last two pipes can be combined as: "sort -u"


[ Reply to This | # ]