Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934117AbcJTLYK (ORCPT ); Thu, 20 Oct 2016 07:24:10 -0400 Received: from mail-bn3nam01on0043.outbound.protection.outlook.com ([104.47.33.43]:59808 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932353AbcJTLYI (ORCPT ); Thu, 20 Oct 2016 07:24:08 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jan.Glauber@cavium.com; Date: Thu, 20 Oct 2016 13:23:51 +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: <20161020112351.GC13708@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: VI1PR03CA0010.eurprd03.prod.outlook.com (10.166.38.148) To CO2PR07MB2581.namprd07.prod.outlook.com (10.166.201.20) X-MS-Office365-Filtering-Correlation-Id: fb3412b1-5520-4478-83d2-08d3f8db9a3c X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2581;2:SZ1hbpcVAI7avo4/fiigFk9KssjKE3w+zOJW/78IierzX/rCPme42yC2K9eng/Lbs0ONZ4PSUKQ3J8sP9bWvRJGPAVV8rnCKMFay4BPxXXfE9eRmqV6+KWqBk5Z0GdCsp5a2Q+hNjGHwsxeH6AgG33sPZ+SaG7TmW/quASjsPVwsidAfiZsBNwUeInUXe8ChfZhZv6AIIgWVuKUKSPLQpw==;3:DFxnxaOQ3c/1JvJMwx2aRt4FY4GeHXFladbhNQbmvXEV+AosnKZvGSpEmhXLC2Hq4uye1+jNo/bSXPcrjDnaB21wDXrFkWZdsqPr8cpdnk95lRft4I16SxabHWowiDPF3aBILLFUUDGNMxIlVtXv9Q== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2581; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2581;25:EzBzT8z2aVRe+zU26rWotbKtKe2Sl+VIlEWALZiJLXizROz7gtJpvk+tqPn7LUABcLB9YfdJBTyEbGqM0JASRir/F6zJh57YOITYUGTNn95RSWcJylSR4rrBSmrF52B+Fcjo0nOlZUDP5bV9lkOuFhcrhUHT0NXgi8QKxlWTXmNvoZtQVyr+L/9u94my7aBq042/jtwbpIozVVdYM26g9jCQfBvmxNgx7J12vyuINExl29wy4jfKKnMoMwbw10IpaJ39pMUFEEZuRKQoJizZu/8lqGe6heXt/TTwG1EG1kLcMUT1VIQ+6f/Ff4eSoljNFNSO2J2lo7FmNx7akwKW6uj036JUSSuSA234GevIf5/XryCLt8o+Mfmv0Ps2z6DPx30UalWXFEdSmZnRxUqTXtTIyzWje9LVB3W7XGNKKBRGtLHhnUWHHradxnO10DDLFeOW9XMIPUAaNBttAkSMY4kc5+0ixCjLLVavPpmnS4ZFPrW24mC+k/DypjVLNH+XsbzH46NVxTzU0M9me06bkQuJVnOhlVI0XGjtS4ef2qKgUj8s477C4/5pi+hwVxg9JT3qhxsL1mY/usA0YsgQLE81QvbldNcc8i1aCFr+YufgfHPcGEGrBPNwBPfSuzhilJ5+hdDPi1OpNquGhWow3eLCUszTyTCmCPNKLOpKrvZMu3Bj0HsTkXBPA738FzyQhVdKGnCJabv0davT/mVMDGTC2VeJyHxuLcBwWlob2ekWvx4xw3YliWau3KaBEysm X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2581;31:bU9KDd++PsBM7n7bKR/Nb6OGa6HKKyVDXbRrSmVEQJdEr3z7mCGD0mOFddlK5/J7/QeA1c/9kQnLpGvGx3GXcGd1j0apaKOlWmHD8oIgl0A7ys1DC05ylDz8urcQ2JAX++mkTAVwGiUtK870kbJNB5RrLZv/2z5fvdj8kCWoRQTgZngZ0H7tAL1ToAe5vpMo/gnLJhdhC46u0R6n/VpVzUCDJ1h3JrN5rPC42+w9NbuSqIwXMC0rsI/xoAo19LhyRPF0H5YEDPJnVoATAGl+Ig==;20:Z+/b7oJrkuED/r4VtpMRVpWwH96qWAr7US5pwyPosElWfs6kaEKnsCsvGiRxAsXxVjHOUbFVHs1/CtaeAgGkNvLeRpYcEqZZn0FJb98ZX2F/lrdzu0L0cQYvPF6hY2NVeaH3WOYQ7tc+UIth/gIooxAsuhmgd7MeLDZUZmENL72oFwAI+FO4lrvb7GzkLrTvvYrdkEseL+QJoVQN8ScbDFGND36uO1yD5YXPbKppr+aCZCF5CEVy8uxpMv8XAEF21fT0dq/6N5B2bGXjfpmDNITiE82MdaFgkTmN8+MUZ4quN5BO3d8BbZuT1rYwNjC+jnWsv2temSTjQKYkxAAB8mrtAw4gVqjq3rM/qWSciSzy1MwoLF/aQu89KwFTLDXv3Lc83FFm7Zgztd+fxGorZpnFGqij9mZ/fRUaUvh8CMnF3TKpeORBwXjrxhIJIroDn1SmuaNFFwMmiVsPiFK9z3degGIb1+Lw+2C0h5aO8jtHM98SkOKKT/F1Al5S8gTEYN6ybs0QdK2Ktk7XOlPq/vgTwJZviRrhCDum5rsW9E6F7DPmRIr3aiuZ3Cl8N3SDpD358hNVk6itoP1iINxi1s7ImmYFLeF73eCCYzxDVUE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:CO2PR07MB2581;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2581; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2581;4:U/74QABdx0sOqH35xQ4qlIfr6z7358yKwiw5nt8FhTYapv2JkidFCpvq03blD9W4X23iYG//alGthOTxBcH/OQa76UCK/Ld7ZCi8HMQdH02HpiNoby/FFgE1ia9eTlCCVvPzT/OS12zsUMPdLi7xAOs6Dpdc22UUcNIdcYHT9LwzNRPSFaym/PJI9F7tu0tuCKNP1CKA28X+qtImvt+W8mB30p4AgtDhvgqEwFvejI7QZePV1VatJ+o0PsI1i9ria+lhP+6nnbWlTwngJOAL6nVS7dzaMXO7WYJV/AfMtP6ucgD6w1OrWxfwJ91Ya+3Y8QGF4f2aVLH/jCdPmyfb0WSKNbXXAnwr/fiZiboa5bSkSWXnd+cVMsewUvR0H2EL5hvhweJqoHOMohbd1E2D6Q== X-Forefront-PRVS: 01018CB5B3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(24454002)(66066001)(189998001)(50986999)(110136003)(2950100002)(42186005)(42882006)(8676002)(7736002)(101416001)(7846002)(81166006)(4326007)(305945005)(4001350100001)(81156014)(50466002)(2906002)(77096005)(97756001)(83506001)(33716001)(46406003)(9686002)(92566002)(97736004)(1076002)(586003)(106356001)(54356999)(3846002)(6116002)(47776003)(33656002)(5660300001)(23726003)(6916009)(6666003)(68736007)(105586002)(76176999)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2581;H:hardcore;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2581;23:rAQBHEJnv2+HJ5W8ouReX1Nd6e/4ORMqpoyFRKm33?= =?us-ascii?Q?u31WLWHsMdEaVuC/uv6Nyi4iDhBIUXB2EXD0PIYrfa1re+OLkclhQnpk/Jhw?= =?us-ascii?Q?pexqSNqqOiIrS6m2liVNLFa/fMPdPink40jRN4dpsjvFCgxGs2MlRCwkOXLC?= =?us-ascii?Q?9zcg84tgTTL+7Iuh20WWbob8q4XzlFJtVOkw4vS4PPgvgZSyg/2Kq1gwjbhF?= =?us-ascii?Q?sezdKfINS4rT1xPcH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hd2Uma0VEqE78usI2aYjyIzXQv7i9G8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2016 11:24:04.4583 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2581 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 16 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? OK, so using perf_invalid_context and "-a" seems to work. But I must say that I hate that from a user perspective. The user needs to know about the type of PMU behind the event and then provide "-a" or get a "