From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754585AbZFBWvA (ORCPT ); Tue, 2 Jun 2009 18:51:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751761AbZFBWuw (ORCPT ); Tue, 2 Jun 2009 18:50:52 -0400 Received: from hera.kernel.org ([140.211.167.34]:60406 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbZFBWuv (ORCPT ); Tue, 2 Jun 2009 18:50:51 -0400 Date: Tue, 2 Jun 2009 22:49:27 GMT From: tip-bot for Ingo Molnar To: linux-tip-commits@vger.kernel.org Cc: linux-kernel@vger.kernel.org, acme@redhat.com, paulus@samba.org, hpa@zytor.com, mingo@redhat.com, jkacur@redhat.com, a.p.zijlstra@chello.nl, efault@gmx.de, mtosatti@redhat.com, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu Reply-To: mingo@redhat.com, hpa@zytor.com, paulus@samba.org, acme@redhat.com, linux-kernel@vger.kernel.org, jkacur@redhat.com, a.p.zijlstra@chello.nl, efault@gmx.de, mtosatti@redhat.com, tglx@linutronix.de, cjashfor@linux.vnet.ibm.com, mingo@elte.hu In-Reply-To: References: Subject: [tip:perfcounters/core] perf record: Print out the number of events captured Message-ID: Git-Commit-ID: addc2785ce92ff05da8edf18317b6b4719e10d9f X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (hera.kernel.org [127.0.0.1]); Tue, 02 Jun 2009 22:49:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: addc2785ce92ff05da8edf18317b6b4719e10d9f Gitweb: http://git.kernel.org/tip/addc2785ce92ff05da8edf18317b6b4719e10d9f Author: Ingo Molnar AuthorDate: Tue, 2 Jun 2009 23:43:11 +0200 Committer: Ingo Molnar CommitDate: Tue, 2 Jun 2009 23:43:11 +0200 perf record: Print out the number of events captured It makes sense to inform the user about how many events perf record has written - so that the sufficiency of profiling coverage and intensity can be determined at a glance. Cc: Peter Zijlstra Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: Thomas Gleixner Cc: John Kacur LKML-Reference: Signed-off-by: Ingo Molnar --- Documentation/perf_counter/builtin-record.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Documentation/perf_counter/builtin-record.c b/Documentation/perf_counter/builtin-record.c index 2741b35..ec3b73a 100644 --- a/Documentation/perf_counter/builtin-record.c +++ b/Documentation/perf_counter/builtin-record.c @@ -467,6 +467,9 @@ static int __cmd_record(int argc, const char **argv) ret = poll(event_array, nr_poll, 100); } + + fprintf(stderr, "[ perf record: Captured and wrote %ld events. ]\n", events); + return 0; }