• Sami Kyostila's avatar
    Add taskstats reporting tool · 178e74d8
    Sami Kyostila authored
    Add a tool for querying and printing out the kernel's taskstats
    structure. This structure contains various profiling information about a
    given process or thread group.
    
    Sample output:
    
        Basic task statistics
        ---------------------
        Stats version:           8
        Exit code:               0
        Flags:                   0x2
        Nice value:              0
        Command name:            init
        Scheduling discipline:   0
        UID:                     0
        GID:                     0
        PID:                     1
        PPID:                    0
        Begin time:              Fri Sep 20 17:06:14 2013
        Elapsed time:            611384577 usec
        User CPU time:           980000 usec
        Minor page faults:       515
        Major page faults:       0
        Scaled user time:        980000 usec
        Scaled system time:      2590000 usec
    
        Delay accounting
        ----------------
                         Count     Delay (ms)  Average delay     Real delay    Scaled real  Virtual delay
        CPU ...
    178e74d8
NOTICE 10.4 KB