From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbdGLOqP (ORCPT ); Wed, 12 Jul 2017 10:46:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:39194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752253AbdGLOqO (ORCPT ); Wed, 12 Jul 2017 10:46:14 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B620222B57 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Date: Wed, 12 Jul 2017 11:46:11 -0300 From: Arnaldo Carvalho de Melo To: Michael Ellerman Cc: Sukadev Bhattiprolu , Jiri Olsa , Madhavan Srinivasan , Andi Kleen , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, mikey@neuling.org Subject: Re: [GIT PULL] Please pull JSON files for Power9 PMU events Message-ID: <20170712144611.GN27350@kernel.org> References: <20170712020827.GB31223@us.ibm.com> <87a849luvr.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a849luvr.fsf@concordia.ellerman.id.au> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jul 12, 2017 at 10:09:12PM +1000, Michael Ellerman escreveu: > Sukadev Bhattiprolu writes: > > Please pull the JSON files for POWER9 PMU events. > > perf vendor events: Add POWER9 PMU events > > perf vendor events: Add POWER9 PVRs to mapfile > I think the PVRs need work. > You have: > +004e0100,1,power9.json,core > +004e0000,1,power9.json,core > The first is P9 DD1, but the second doesn't exist. We have it in the > kernel, but with a mask of 0xffff0000. From memory the perf code doesn't > do any masking or anything fancy, it looks for an exact match. > So for starters you should probably drop that one and add 0x004e1200 and > 0x004e0200. Could this check be somehow done automatically? Using whatever is in the kernel sources or some IBM released document? - Arnaldo