Received: by 10.223.176.46 with SMTP id f43csp4232984wra; Tue, 23 Jan 2018 06:25:42 -0800 (PST) X-Google-Smtp-Source: AH8x224sCHPftpxLYSYYXS6fPYFZqE77KVG4GVfA5nRMTuKfCzS0pCPkktONbLqBQFtyh9w4KLUt X-Received: by 10.101.87.195 with SMTP id q3mr8858673pgr.428.1516717542387; Tue, 23 Jan 2018 06:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516717542; cv=none; d=google.com; s=arc-20160816; b=Iovziq98mm1CWFpMuJGC9QdrLfpR9qLkeiu64dSsVNhl2v4LDwIBUtfd9inm0zleAL a2nxeupurRMBtsI4eX1mliIVU9YJ6PBeEOttFBHd02evCeuAqislOtEAgaQe5wmZEFL4 NcoMgBtuIS64PsJ4axjFjhldJlzUVGpzuaFc7xHT99LgSw3oyh6XA/0LPoJdm4gfrGUF oe/mPO7Remig0BgpDXzKoXzwcTj1jmCGxcGWKHAwKLixQrgfht2njcOWSwZHx4zRSa9u lGP7oopWPg8TomQ9DXDQlI5Vk+PuVRe5Va+dbZuiKWyFSDND4VCVUpX8OD6NQeG5LXTY AVvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hZntyKs1vDy4mFtkOJoWIqQTUOYvyIxZxq6C9wrYiQA=; b=D+pgQdDckUMcgpDPK49k/to5Q0jvGFHmkiOOCMievHxXCFwgUKVoVZOfTNDwKiXi5C iH2mxOmKFpe5dFNu8O7sXkvP543/0+XLGDHYWgAtSoOmkfb3i1+YdCHUEBudb2DMVFEg dfS0Afrnv9cQev0SUH6OKIKSMY2xMzarGc+bNVbEw+DYWHeOOCUireoM8JYQkbUR8RgW AD8bwFwPkmwu863iybt4aFkMqfltpuC8VyJuVHaP/PLJh5An6tcAJ249NV4EsmrJRHSZ DTu4pJGzGAq88R+ivW0uigUj+9npmjkYhU0zC5PHZ7KE3WxGvWm+AeEFeWPhDHcCR1+B CJ3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si2314302plb.612.2018.01.23.06.25.27; Tue, 23 Jan 2018 06:25:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751955AbeAWOYz (ORCPT + 99 others); Tue, 23 Jan 2018 09:24:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47202 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751706AbeAWOYy (ORCPT ); Tue, 23 Jan 2018 09:24:54 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3488E8B109; Tue, 23 Jan 2018 14:24:54 +0000 (UTC) Received: from krava (unknown [10.43.17.249]) by smtp.corp.redhat.com (Postfix) with SMTP id BA2F917AF8; Tue, 23 Jan 2018 14:24:50 +0000 (UTC) Date: Tue, 23 Jan 2018 15:24:50 +0100 From: Jiri Olsa To: ufo19890607 Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, dsahern@gmail.com, namhyung@kernel.org, milian.wolff@kdab.com, arnaldo.melo@gmail.com, yuzhoujian@didichuxing.com, adrian.hunter@intel.com, wangnan0@huawei.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com Subject: Re: [PATCH 1/1] perf stat: Add support to print counts for fixed times Message-ID: <20180123142449.GA21721@krava> References: <1516192645-27187-1-git-send-email-ufo19890607@gmail.com> <1516192645-27187-2-git-send-email-ufo19890607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1516192645-27187-2-git-send-email-ufo19890607@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 23 Jan 2018 14:24:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 01:37:25PM +0100, ufo19890607 wrote: > From: yuzhoujian > > Introduce a new option to print counts for fixed number of times > and update perf-stat documentation accordingly. > > Show below is the output of the new option for perf stat. > > $perf stat -I 1000 --times-print 2 -e cycles -a > # time counts unit events > 1.002827089 93,884,870 cycles > 2.004231506 56,573,446 cycles you can do that with following command: [jolsa@krava perf]$ sudo ./perf stat -I 1000 -e cycles -a sleep 2 # time counts unit events 1.000160132 437,471,026 cycles 2.000367121 729,415,520 cycles 2.000857390 1,407,820 cycles jirka