Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756657AbaBFUVt (ORCPT ); Thu, 6 Feb 2014 15:21:49 -0500 Received: from mail-ob0-f179.google.com ([209.85.214.179]:59432 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752307AbaBFUVp (ORCPT ); Thu, 6 Feb 2014 15:21:45 -0500 MIME-Version: 1.0 In-Reply-To: <20140206192844.GB27665@infradead.org> References: <20140206135627.GA26955@infradead.org> <20140206140705.GB26955@infradead.org> <20140206140936.GC26955@infradead.org> <52F3CAE3.7060007@gmail.com> <20140206192131.GA27665@infradead.org> <20140206192844.GB27665@infradead.org> Date: Thu, 6 Feb 2014 21:21:44 +0100 Message-ID: Subject: Re: [BUG] perf top: --stdio causes continuous refresh From: Stephane Eranian To: Arnaldo Carvalho de Melo Cc: David Ahern , LKML , Peter Zijlstra , "mingo@elte.hu" , Jiri Olsa , Eric Dumazet Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 6, 2014 at 8:28 PM, Arnaldo Carvalho de Melo wrote: > Em Thu, Feb 06, 2014 at 05:21:31PM -0200, Arnaldo Carvalho de Melo escreveu: >> Em Thu, Feb 06, 2014 at 10:48:19AM -0700, David Ahern escreveu: >> > On 2/6/14, 8:24 AM, Stephane Eranian wrote: >> > >On Thu, Feb 6, 2014 at 3:09 PM, Arnaldo Carvalho de Melo >> > >>>>I am using tip.git. Or try 3.11, 3.10. > >> > >>But my tests are on top of: > >> > >>[acme@ssdandy linux]$ uname -r >> > >>3.11.4-101.fc18.x86_64 > >> > >>I thought it was a 3.14ish one, building one to try there... > >> > >The kernel must be 3.14-rcX, the tool can be any version. > >> > I don't have time to do a git bisect, but I can narrow the window to >> > 3.13-rc6 and 3.14-rc1. Just happened to update a server yesterday. >> > perf-top --stdio runs fine on the former and shows the problem on >> > the latter. >> >> Humm, >> >> /* >> * Either timeout expired or we got an EINTR due to >> * SIGWINCH, refresh screen in both cases. >> */ >> switch (poll(&stdin_poll, 1, delay_msecs)) { > >> And poll is returning 1: > >> 951.068 ( 0.002 ms): poll(ufds: 0x7ff660befbb0, nfds: 1, timeout_msecs: 2000) = 1 > > We go to the getc(stdin) and it returns EOF :-\ > Doesn't poll() return 0 if timeout, and 1 if descriptor in this case? So you're saying you get 1 and getc() returns nothing to read. Does stdin get closed somehow? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/