lkml.org 
[lkml]   [2012]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] perf: teach perf inject to merge sched_stat_* and sched_switch events (v2)
On 8/27/12 2:51 PM, Andi Kleen wrote:
> Andrew Vagin <avagin@openvz.org> writes:
>>
>> My code saves sched_switch event for each process and when it meets
>> stat_iowait, it reports the sched_switch event, because this event
>> contains a correct callchain. By another words it replaces all
>> stat_iowait events on proper sched_switch events.
>
> Is there any way to generalize this to arbitary events? I found myself
> writing scripts to compute lengths between various events. But I

You mean delta-time between events? I have toyed around with patches to
perf-script for this -- dt between same event on a cpu, dt between
consecutive events on a cpu, dt between events for a thread, etc.

David




\
 
 \ /
  Last update: 2012-08-28 00:41    [W:1.287 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site