lkml.org 
[lkml]   [2013]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 2/2] perf stat: add interval printing
From
On Fri, Jan 18, 2013 at 7:30 PM, Andi Kleen <ak@linux.intel.com> wrote:
>> if (forks) {
>> close(go_pipe[1]);
>> + if (interval) {
>> + while (!waitpid(child_pid, &status, WNOHANG)) {
>> + ret = nanosleep(&ts, NULL);
>> + if (ret == 0 && interval)
>> + print_interval();
>
> It would be good to make sure that if someone Ctrl-Cs
> you still print the latest interval(even if shorter)
>
Ok, I can remove the test. The interval is redundant here anyway.
Will post V4 shortly.


\
 
 \ /
  Last update: 2013-01-19 02:01    [W:0.054 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site