From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753864AbbF3E6b (ORCPT ); Tue, 30 Jun 2015 00:58:31 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38718 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754280AbbF3E6L (ORCPT ); Tue, 30 Jun 2015 00:58:11 -0400 Date: Mon, 29 Jun 2015 21:57:54 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: acme@redhat.com, dsahern@gmail.com, hpa@zytor.com, mingo@kernel.org, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, eranian@google.com, ak@linux.intel.com, tglx@linutronix.de, a.p.zijlstra@chello.nl Reply-To: acme@redhat.com, dsahern@gmail.com, hpa@zytor.com, jolsa@kernel.org, mingo@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, eranian@google.com, ak@linux.intel.com, tglx@linutronix.de, a.p.zijlstra@chello.nl In-Reply-To: <1435310967-14570-20-git-send-email-jolsa@kernel.org> References: <1435310967-14570-20-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf stat: Rename print_interval to process_interval Git-Commit-ID: ba411a954eae3e88c02667a5670cac97fb9c3f58 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: ba411a954eae3e88c02667a5670cac97fb9c3f58 Gitweb: http://git.kernel.org/tip/ba411a954eae3e88c02667a5670cac97fb9c3f58 Author: Jiri Olsa AuthorDate: Fri, 26 Jun 2015 11:29:24 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Jun 2015 11:51:23 -0300 perf stat: Rename print_interval to process_interval It suits better, because the function also reads counter's data. Also the 'print_interval' name will be used in following generalization of counters display. Signed-off-by: Jiri Olsa Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1435310967-14570-20-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 526f677..aa706fc 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -363,7 +363,7 @@ static void read_counters(bool close) } } -static void print_interval(void) +static void process_interval(void) { static int num_print_interval; struct perf_evsel *counter; @@ -526,7 +526,7 @@ static int __run_perf_stat(int argc, const char **argv) if (interval) { while (!waitpid(child_pid, &status, WNOHANG)) { nanosleep(&ts, NULL); - print_interval(); + process_interval(); } } wait(&status); @@ -544,7 +544,7 @@ static int __run_perf_stat(int argc, const char **argv) while (!done) { nanosleep(&ts, NULL); if (interval) - print_interval(); + process_interval(); } }