[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] trace: reset sleep/block start time on task switch
    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

    Problem with that is it'll try and do a backtrace for all events, not
    only the sched_switch but also sched_stat_sleep, which is completely
    superfluous (and expensive).

    Currently perf tool doesn't support individual -g flags though and its
    slightly non-trivial to make it so. Easiest work-around would be two
    records and then merge the two files.

     \ /
      Last update: 2012-02-10 19:45    [W:0.030 / U:111.304 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site