From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbdBTHNH (ORCPT ); Mon, 20 Feb 2017 02:13:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43790 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750858AbdBTHNG (ORCPT ); Mon, 20 Feb 2017 02:13:06 -0500 Date: Mon, 20 Feb 2017 08:13:00 +0100 From: Jiri Olsa To: Borislav Petkov Cc: Arnaldo Carvalho de Melo , Jiri Olsa , David Ahern , Namhyung Kim , Peter Zijlstra , lkml , Ingo Molnar Subject: Re: [PATCHv2 4/5] perf stat: Add -a as a default target Message-ID: <20170220071300.GA12002@krava> References: <1487340058-10496-1-git-send-email-jolsa@kernel.org> <1487340058-10496-5-git-send-email-jolsa@kernel.org> <20170217142747.GD4109@kernel.org> <20170217143327.GA11281@krava> <20170217144128.GF4109@kernel.org> <20170217170034.GB15389@krava> <20170218175225.5cylpqti7oluqehv@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170218175225.5cylpqti7oluqehv@pd.tnic> User-Agent: Mutt/1.7.1 (2016-10-04) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 20 Feb 2017 07:13:06 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 18, 2017 at 06:52:25PM +0100, Borislav Petkov wrote: > On Fri, Feb 17, 2017 at 06:48:13PM +0100, Boris Petkov wrote: > > LGTM. > > > > Acked-by: me > > Well, it looks good but actually trying it is a different story. For > example: > > $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/ sleep 1 > > still says because argc is not 0. > > So how about the below diff instead? > > $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/ > > without args dumps the usage message and > > $ ./perf stat -e amd_nb/event=0xe0,umask=0x1f/ sleep 1 > > actually does the system-wide thing: > > Performance counter stats for 'system wide': > > 196,469 amd_nb/event=0xe0,umask=0x1f/ > > 1.001815180 seconds time elapsed > > Hmmm? ugh, I thought it was too easy ;-) it looks good to me thanks, jirka