[osol-discuss] How to dtrace thread_reaper?

2009-10-20 Thread Thomas Blank
Hi all, I want to trace the thread_reaper and want to find out, how often it runs and how many threads it really reaps. I use this one-liner in the first step: [r...@itotcsol104 bin]# dtrace -n 'fbt:genunix:thread_reaper: { @num[probefunc] = count(); }' dtrace: description

Re: [osol-discuss] [dtrace-discuss] How to dtrace thread_reaper?

2009-10-20 Thread Thomas Blank
Hi Jon, hi Brian, thank you both very much for your quick and detailed responses. Jon, the code you sent me is exactly what I was looking for! I added some probes to have some more information. Thus the entry probe will only ever be fired once during the kernel initialisation, and by the time