Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932483AbcJTLCy (ORCPT ); Thu, 20 Oct 2016 07:02:54 -0400 Received: from mail-by2nam01on0085.outbound.protection.outlook.com ([104.47.34.85]:6162 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755896AbcJTLCw (ORCPT ); Thu, 20 Oct 2016 07:02:52 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Thu, 20 Oct 2016 13:02:35 +0200 From: Jan Glauber To: Peter Zijlstra CC: Mark Rutland , Will Deacon , , Subject: Re: [PATCH v3 0/5] Cavium ThunderX uncore PMU support Message-ID: <20161020110235.GB13708@hardcore> References: <1476955841-27898-1-git-send-email-jglauber@cavium.com> <20161020103707.GB3175@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161020103707.GB3175@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [46.223.67.241] X-ClientProxiedBy: HE1PR01CA0028.eurprd01.prod.exchangelabs.com (10.163.2.166) To CO2PR07MB2583.namprd07.prod.outlook.com (10.166.201.22) X-MS-Office365-Filtering-Correlation-Id: a1df2f59-980a-4bb3-ee9a-08d3f8d8a1be X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2583;2:P4cNvGrKJY6G6ZgsK7B3/akenJySBP0p7iys1W+yl2TRVx9TY/zdJfrYci8Da4Z1mRsuZxiCK+Rm0WDhbca7Len7VMz3vqtTL8PpV+kcl+AbBsb9Jv5IdnPj3Xp83a0pmv+3wVztD69xNuHV5sH2/elAQa1iLbafj9CONwfCnTcxIPy4HVYgwYHny86tMCQtkPIFQt8T4OSxSBxtLkRHdg==;3:Bt2rEHsTRrmVU1qyyKFwfjrC7j3yOSWvMO239Tu0xCDfSrdVT/JELP/5XFc6Nwndcq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dm1hq6hcLIR1DeTAxBX1qtZncC4aJ/4JPALrkLcaJKo8oyW0rBM3Zs3sUPrvHYsj7oBUXeNuk/VyMMwllhkJzee+eU31kZFl0FiJJevqASUXJYMhJdFsM7s29We99Uw7NwwkCTN78D1hMt0iIYw6uuv9C9SKoA//CISjvmG2cdAq5wvZ0Vvy20HVE5UgOO//LcVFo5lns7Yu443ow73KM=;20:Wm5EZIWgSHqcktkriel7qW+s2jJJb7Aw8G2EyW8uAf/gVNMhqh/WzUZgCoxThvWOPb00n7cA0TJdFtKZRQNAJ6nM7Yxq8pDIlGJg9wP0eqTYYMd9QjcY4VzTunYowEOlk5wC7bOFgLeYUDKZBCJFtz0ukFvxvUctlasH9YmSQCA93LKSFEjxzQKC+ZLuuINTvgXNaXFKlu7DKqKt9KznaMhDe7SS47sy9xpbo8of5D1wR6I9/mjYoqi9RkOfOuj8C2uU4Yr+rtd3EaD6IGRf+1y5Bb6CsltPJkoRCoLPSbywnRgLqBHCP6dlBfs2WQ2+aF1Si7mlhslouN844yAozX5hs7qa4PwRY7CXr4EN3DQhEiFYBwZgleB8gY6imamfxgN1kueJEC1g6GsqDfonsAeHqlJuwc4NkoHpMXceQSrehivcjiB8UAoP/uZZZ2bT2DCQdWQm2Nh+D+Bh4nF7Lx2tkcxiu8G6XoNzU6/ngIyxVNDyTnPViqjShJsGlxbCMvm4DZgPB2j9/UuM8pITvQLc5MY/OOtlWHL3p22Zs50nvVKLG7rOdgJfqO7GcrxR13PjIrZD8hChzCTlSbb41FLMhqnIuz2ku/v1OqpgyzM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:CO2PR07MB2583;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2583; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2583;4:6X62qHeYKoXnHuSK6Jlelc4azs86oYq0KTgllo68KtnJ0IQzT5svupq6eO/5h0QKxwlnRbvayLBU4Orgj+P2eoQJifvSUUN6/U9nIf+UDsDeA5+RUFBFn8SJDzZxJhscbro3NCg8eQ0mQl9ezutHEvRdkJPW6nIJfA8Ou0x2Vh+1XQ63Fy/wr7RX941uJRjkpHRwOWvNrAotLZJaMtZfnYNH/KlwxWbS3M/wIs/1rmtntyd9UxiKPz0OgY+ubEbVuE+ph4eZwJ3vqRh00tveoyNVcXAD/w2HjHJNN30euRHTHTpHznPp6daiSJikQTKVfGvMSAsSgkwlO/CZm8DMpYtRU3NNv1CFNqXKHL/myYKdiGKLZVkuBo+/1md/d2xgXBkGXpy+LEU9CjZESO5eNBazTS9Q/pixLtXLUhb4qWqC0e7KYDiMN00iHTvriSZT X-Forefront-PRVS: 01018CB5B3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(24454002)(7736002)(101416001)(97736004)(6116002)(54356999)(46406003)(586003)(7846002)(92566002)(97756001)(2950100002)(5660300001)(76176999)(2906002)(6916009)(81166006)(106356001)(47776003)(105586002)(9686002)(42882006)(6666003)(3846002)(110136003)(66066001)(23726003)(189998001)(4326007)(42186005)(8676002)(50986999)(1076002)(83506001)(77096005)(68736007)(33716001)(33656002)(50466002)(81156014)(4001350100001)(305945005)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2583;H:hardcore;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2583;23:c7IKfwz6kAKqnnPqtB1mBb6i963i3tgfru3+JFTwB?= =?us-ascii?Q?5hkzu9r5c0PRgCUWoPZ7qW0ENuAe1NeFL7EQ87u8/Solkwq//71LDtR3YcgF?= =?us-ascii?Q?K0hYVB+K1cKiWNNn1pX8tFMYzWWR/k4cJFzbRS9J1IgFTas6nuSyHQmvHfeX?= =?us-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VkrOG6PBtSrYvI+7PtS0rSDiFTRX4YeG/mGFnzDf6Xqnv1lT7wgjY7FH3aUugINwVFvZ0OQnKMhzJ8rHdQ6uKzV1I5tV1DVVngfKPtYoiw6aCdT9Zi9wptSB9x2uCHx3sGV28152p+SDnc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2016 11:02:48.1575 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2583 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 13 On Thu, Oct 20, 2016 at 12:37:07PM +0200, Peter Zijlstra wrote: > On Thu, Oct 20, 2016 at 11:30:36AM +0200, Jan Glauber wrote: > > Note: > > I'm using perf_sw_context in difference to perf_invalid_context > > (see WARN_ON in perf_pmu_register). Reason is that with perf_invalid_context > > add() is never called and the counter results are shown as "unsupported" by > > perf. With perf_sw_context everything works as expected. > > What?! All the uncore PMUs use perf_invalid_context. What doesn't work > for you? As I said, perf reports the values as "unsupported". But as Mark pointed out, I wasn't using -a switch, just "perf stat -e \thunderx_lmc\blah\ -- ...".