Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1446156imm; Wed, 6 Jun 2018 16:32:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI5UwA7hVVxbnYhAkLLIQkmGuNTP1yjxEJNKDv/rCFvBfCUEjF9zTDEdKiOGMRhsYD29JHn X-Received: by 2002:a65:5246:: with SMTP id q6-v6mr4141367pgp.152.1528327926689; Wed, 06 Jun 2018 16:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528327926; cv=none; d=google.com; s=arc-20160816; b=RWH2fHPb8ZCoh9r40C7GBGCYEzbmpRU3Y841EUG/U069YanFb5NIEE6p1e8pD2Nq9p PUpNlBgA1G2rc6J0laThR5ttvmrMso6ZsjIZqP8nmmxvNL4IX8gCdtN8WKYJ6SYSRNk4 vsq4issi9AmNc+ci8UOsLwwKxmZnXaBpRYMHtVnTcwwXOwAKg8wTKuHYV9AV1Y4OlsR9 nN0qtxxGld2Vav6sfbcgseFGxiNp61HRTuwIrGZtZDmvJ6HufpoQqqoxJR1MG95ItWxW jhDuLVu0Y8lGXfbHm3day0GuL0B9Fulx4q+11g9kK/qLUQg5vprqBT3mnfBweW3h0/Aj buAA== 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=3ekDCliN1TeVPCvrAgSmatf4LDu1r5B4BDC4+SnHRIo=; b=ZBEi64CNLtZ4j/YPITC6VjYg3ZT2KQcYadMfam2CsuYtUVWXl7VR+Adq5ROhsfhpmv 3BGyspC2da+gX60N5qI3G1H5fF3DX8fFQt8FxNZX2a2PKj7bvrVl3MlhnrlgWcNMR4FR J1dxhxR/rI+zLoq6ku+Vo0Uhq8+O6Y5Oh6d2meAAs4I8p1cW0eqCJgLzBG1AkItHbIew 5n1Ph+2md5Z6QCqHUxPLw4RCFY31+vhb1vU27z4oZ/yL3TVKYYGcPULr0FIyElIpPJl8 KRHrRPzesQTzOfzLpBQ+WlnuTzLqotFwU+TKjd2TxU6ERhYF0s+PgTfolrSz8msttfRm NSag== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si49939392plg.586.2018.06.06.16.31.52; Wed, 06 Jun 2018 16:32:06 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752875AbeFFXTE (ORCPT + 99 others); Wed, 6 Jun 2018 19:19:04 -0400 Received: from mga01.intel.com ([192.55.52.88]:27388 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752195AbeFFXTC (ORCPT ); Wed, 6 Jun 2018 19:19:02 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2018 16:19:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,485,1520924400"; d="scan'208";a="57156872" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by orsmga003.jf.intel.com with ESMTP; 06 Jun 2018 16:19:02 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 2D051300B48; Wed, 6 Jun 2018 16:19:02 -0700 (PDT) Date: Wed, 6 Jun 2018 16:19:02 -0700 From: Andi Kleen To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Kan Liang , Agustin Vega-Frias , lkml , Ingo Molnar , Namhyung Kim , David Ahern , Alexander Shishkin , Stephane Eranian , Milian Wolff , Andi Kleen , Frederic Weisbecker Subject: Re: [PATCH 01/10] perf tools: Uniquify the event name if there's no other matched event Message-ID: <20180606231902.GE7220@tassilo.jf.intel.com> References: <20180606221513.11302-1-jolsa@kernel.org> <20180606221513.11302-2-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180606221513.11302-2-jolsa@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 12:15:04AM +0200, Jiri Olsa wrote: > Currently by default we try to match the user specified PMU > name to all PMU units available and use them to aggregate > all matched PMUs event counts into one 'pattern' event. > > While this is useful for uncore events, it screws up names > for other events, where this is not desirable, like: > > Before: > # perf stat -e cp/cpu-cycles/ kill I assume you mean cpU/cpu-cycles/ > > Performance counter stats for 'kill': > > 1,573,757 cp/cpu-cycles/ > > Keeping the pattern matching logic, but making the name unique > in case there's no other match found. That fixes the example > above and hopefully does not screw up anything else. > > After: > # perf stat -e cp/cpu-cycles/ kill > > Performance counter stats for 'kill': > > 1,573,757 cpu/cpu-cycles/ The output is 100% identical? -Andi