Lewis Thompson wrote:
> Good afternoon
>
> I'm interested in writing a couple of simple dcmds that are of use to me.  
> These are:
>
> ::lastran
> would print the time a thread last ran in walltime and ticks
>   

  ::thread -d
   This prints the last time [lbolt] the thread ran on a cpu .
   Example:
   > ffffff014b1ec350::walk thread | ::thread -d
            ADDR         DISPTIME BOUND PR
ffffff014514dc00             4eab    -1  0
ffffff014513e160             5293    -1  0
ffffff014513fc60            23ae6    -1  0
ffffff0145237260             4eab    -1  0
ffffff01453110a0            16b4a    -1  0
ffffff014530e860            23a73    -1  0
ffffff0145236840             4483    -1  0
ffffff01453213c0             4483    -1  0
ffffff01455617a0             4483    -1  0

   Printing the time since it last ran [t - X] would be useful like it 
is done for ::cpuinfo wrt to the lbolt.
   > ::cpuinfo
 ID ADDR             FLG NRUN BSPL PRI RNRN KRNRN SWITCH 
THREAD           PROC
  0 fffffffffbc2b470  1b    0         0        -1   no         
no             t-0         ffffff0003c05c80  idle

  
> ::ts_chain
> would look up the ts_chain for a given sobj.  we already have sobj2ts which 
> does this work so it would make sense to update sobj2ts to use ts_chain and 
> expose both functionalities.
>   

 I am not quite sure what you are proposing. can you please provide an 
example.


Pramod

> My question is really around the inclusion of these dcmds in mdb.  I'd like 
> to see them included and not maintain a personal set of modules.  Can anybody 
> comment on whether this is likely.  I work at Sun, if that makes any 
> difference.
>
> thanks, Lewis
>   

Reply via email to