lkml.org 
[lkml]   [2012]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] trace: reset sleep/block start time on task switch
    From
    Date
    On Wed, 2012-01-25 at 11:50 -0800, Arun Sharma wrote:

    > # perf record -agP -e sched:sched_switch --filter "prev_state == 1 ||
    > prev_state == 2" -e sched:sched_stat_sleep -- sleep 3
    > [ perf record: Woken up 107 times to write data ]
    > [ perf record: Captured and wrote 32.629 MB perf.data (~1425585 samples) ]
    > Warning:
    > Processed 104066 events and lost 4 chunks!
    >
    > Check IO/CPU overload!

    Just for kicks, could you try trace-cmd?

    git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git

    trace-cmd record -e sched_switch -f 'prev_state == 1 || prev_state == 2' -e sched_stat_sleep sleep 3

    I'm not sure the filter is even needed, and it should still keep up
    fine.

    -- Steve




    \
     
     \ /
      Last update: 2012-01-25 21:19    [W:0.029 / U:0.356 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site