From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752097AbbIXJCH (ORCPT ); Thu, 24 Sep 2015 05:02:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42462 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbbIXJCF (ORCPT ); Thu, 24 Sep 2015 05:02:05 -0400 Date: Thu, 24 Sep 2015 11:01:59 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 5/9] perf, tools, stat: Move noise/running printing into printout Message-ID: <20150924090159.GF2024@krava.redhat.com> References: <1442879404-11675-1-git-send-email-andi@firstfloor.org> <1442879404-11675-6-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1442879404-11675-6-git-send-email-andi@firstfloor.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2015 at 04:50:00PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Move the running/noise printing into printout to avoid > duplicated code in the callers. > > v2: Merged with other patches. Remove unnecessary hunk. > Readd hunk that ended in earlier patch. > Signed-off-by: Andi Kleen before this patch: [jolsa@krava perf]$ ./perf stat -e cycles -I 1000 -x, yes > /dev/null 1.000094538,3096196189,,cycles,999950202,100.00 2.000221468,3166074438,,cycles,1000343225,100.00 3.000337023,3176613442,,cycles,1000467727,100.00 after this patch: [jolsa@krava perf]$ ./perf stat -e cycles -I 1000 -x, yes > /dev/null 1.000108411,3181447248,,cycles 2.000223843,3183422336,,cycles 3.000327830,3176506268,,cycles jirka