From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753662AbbHKUI4 (ORCPT ); Tue, 11 Aug 2015 16:08:56 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:36784 "EHLO e32.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbbHKUIz (ORCPT ); Tue, 11 Aug 2015 16:08:55 -0400 X-Helo: d03dlp03.boulder.ibm.com X-MailFrom: sukadev@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Date: Tue, 11 Aug 2015 13:07:24 -0700 From: Sukadev Bhattiprolu To: mingo@redhat.com, ak@linux.intel.com, Michael Ellerman , Jiri Olsa , Arnaldo Carvalho de Melo Cc: namhyung@kernel.org, maddy@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V15 00/19] perf, tools: Add support for PMU events in JSON format Message-ID: <20150811200724.GA10078@us.ibm.com> References: <1433921123-25327-1-git-send-email-sukadev@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433921123-25327-1-git-send-email-sukadev@linux.vnet.ibm.com> X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15081120-0005-0000-0000-0000165E20C9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sukadev Bhattiprolu [sukadev@linux.vnet.ibm.com] wrote: | CPUs support a large number of performance monitoring events (PMU events) | and often these events are very specific to an architecture/model of the | CPU. To use most of these PMU events with perf, we currently have to identify | them by their raw codes: | | perf stat -e r100f2 sleep 1 | | This patchset allows architectures to specify these PMU events in JSON | files located in 'tools/perf/pmu-events/arch/' of the mainline tree. | The events from the JSON files for the architecture are then built into | the perf binary. | | At run time, perf identifies the specific set of events for the CPU and | creates "event aliases". These aliases allow users to specify events by | "name" as: | | perf stat -e pm_1plus_ppc_cmpl sleep 1 | | The file, 'tools/perf/pmu-events/README' in [PATCH 19/19] gives more | details. | | Note: | - All known events tables for the architecture are included in the | perf binary. | | - For architectures that don't have any JSON files, an empty mapping | table is created and they should continue to build) | | Thanks to input from Andi Kleen, Jiri Olsa, Namhyung Kim and Ingo Molnar. | | These patches are available from: | | https://github.com:sukadev/linux.git | | Branch Description | ------------------------------------------------------ | json-v15 Source Code only | json-files-5 x86 and Powerpc datafiles only | json-v15-with-data Both code and data (build/test) | | NOTE: Only "source code" patches (i.e those in json-v15) are being emailed. | Please pull the "data files" from the json-files-5 branch. Ingo, Arnaldo, Any updates on this patchset? They have been reviewed/acked by Jiri and we have not received any comments since then. Is there a chance this can make it into 4.3? Sukadev