From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752277AbbH1Ghs (ORCPT ); Fri, 28 Aug 2015 02:37:48 -0400 Received: from terminus.zytor.com ([198.137.202.10]:54626 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbbH1Ghq (ORCPT ); Fri, 28 Aug 2015 02:37:46 -0400 Date: Thu, 27 Aug 2015 23:37:30 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: linux-kernel@vger.kernel.org, acme@redhat.com, dsahern@gmail.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, eranian@google.com, namhyung@kernel.org, adrian.hunter@intel.com, jolsa@redhat.com, bp@suse.de, fweisbec@gmail.com Reply-To: adrian.hunter@intel.com, fweisbec@gmail.com, bp@suse.de, jolsa@redhat.com, dsahern@gmail.com, linux-kernel@vger.kernel.org, acme@redhat.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, eranian@google.com, namhyung@kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf ordered_events: Clear the progress bar at the end of a flush Git-Commit-ID: 5c9ce1e644c1919ac4bff4394a4c372f47a89b4e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 5c9ce1e644c1919ac4bff4394a4c372f47a89b4e Gitweb: http://git.kernel.org/tip/5c9ce1e644c1919ac4bff4394a4c372f47a89b4e Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 24 Aug 2015 17:16:22 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 24 Aug 2015 17:16:22 -0300 perf ordered_events: Clear the progress bar at the end of a flush We were depending on the next screen operation after a flush() being one that would redraw the whole screen so that the progress bar would be overwritten, when that didn't happen a screen artifact of, say, a error dialog window would be overlaid on top of the progress bar, fix it by calling ui_browser__finish(), that now has a TUI implementation. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-el0fyw6duemnx62lydjzhs8c@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/ordered-events.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/ordered-events.c b/tools/perf/util/ordered-events.c index 52be201..b1b9e23 100644 --- a/tools/perf/util/ordered-events.c +++ b/tools/perf/util/ordered-events.c @@ -220,6 +220,9 @@ static int __ordered_events__flush(struct ordered_events *oe) else if (last_ts <= limit) oe->last = list_entry(head->prev, struct ordered_event, list); + if (show_progress) + ui_progress__finish(); + return 0; }