Message ID | 20201012132633.966541649@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=uWP8=DT=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 584B7C433E7 for <stable@archiver.kernel.org>; Mon, 12 Oct 2020 13:41:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0854F2222A for <stable@archiver.kernel.org>; Mon, 12 Oct 2020 13:41:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602510094; bh=0eJa7RhJIardyML5iBkzlYb6QbrNEuYZ1CbCF0lDW1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=sn90ups51t2JjnMuLsIZveyT8oBtzCbwqskOfxpUPzntKWFXHiDF0ehEvQdki2oAF Zb0nT3gWbAwYrRodkn0dffHgO+fGoPL/EdytU1dzxyj9Z4JkT96tbyIN/SvmuZx3WW zMo+YaQMeaY88b81BtMzeLKgzB7hVPI41ytSMF0E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389221AbgJLNl0 (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 12 Oct 2020 09:41:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:44166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389009AbgJLNlA (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 12 Oct 2020 09:41:00 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1956E20678; Mon, 12 Oct 2020 13:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602510058; bh=0eJa7RhJIardyML5iBkzlYb6QbrNEuYZ1CbCF0lDW1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oC4+Wl+WbZFwrzhradSr6rI+5z12uIF268AQ3486b/J9XveIaAhdoIlp7Rjgrd19M vG8X4z5IqSBM4ulTGah8i8ZrXS4p3DAuz6GRZwS/gKJMqusmhI+Xt0Xsaly/7+4H24 cjzj2mtywQ7JJwR9Vlb0BjIxidUflZF9c5Ny1nvA= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Tommi Rantala <tommi.t.rantala@nokia.com>, Arnaldo Carvalho de Melo <acme@redhat.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Namhyung Kim <namhyung@kernel.org>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH 5.4 23/85] perf top: Fix stdio interface input handling with glibc 2.28+ Date: Mon, 12 Oct 2020 15:26:46 +0200 Message-Id: <20201012132633.966541649@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132632.846779148@linuxfoundation.org> References: <20201012132632.846779148@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -683,7 +683,9 @@ repeat: delay_msecs = top->delay_secs * MSEC_PER_SEC; set_term_quiet_input(&save); /* trash return*/ - getc(stdin); + clearerr(stdin); + if (poll(&stdin_poll, 1, 0) > 0) + getc(stdin); while (!done) { perf_top__print_sym_table(top);