From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbbJBEkq (ORCPT ); Fri, 2 Oct 2015 00:40:46 -0400 Received: from mga09.intel.com ([134.134.136.24]:27600 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbbJBEko (ORCPT ); Fri, 2 Oct 2015 00:40:44 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,621,1437462000"; d="scan'208";a="817655974" From: Alexander Shishkin To: Mathieu Poirier Cc: Greg KH , a.p.zijlstra@chello.nl, Arnaldo Carvalho de Melo , Ingo Molnar , Jon Corbet , Adrian Hunter , Chunyan Zhang , Mike Leach , Tor Jeremiassen , Al Grant , =?utf-8?Q?Pawe?= =?utf-8?Q?=C5=82?= Moll , "linux-arm-kernel\@lists.infradead.org" , linux-doc@vger.kernel.org, "linux-kernel\@vger.kernel.org" Subject: Re: [RFC PATCH 01/20] coresight: etm3x: splitting 'etm_enable_hw()' operations In-Reply-To: References: <1442593594-10665-1-git-send-email-mathieu.poirier@linaro.org> <1442593594-10665-2-git-send-email-mathieu.poirier@linaro.org> <87r3lgjkjw.fsf@ashishki-desk.ger.corp.intel.com> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 02 Oct 2015 07:40:39 +0300 Message-ID: <87y4fl3mt4.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mathieu Poirier writes: > On 30 September 2015 at 03:58, Alexander Shishkin > wrote: >> Most of these things can also be bypassed, as at least initially perf >> events won't be using trigger/sequencer configurations, so we could >> simply clear all these things out when a first perf event is created >> (which would also disallow any sysfs poking around the etm/etb) and not >> worry about them in the pmu callbacks. > > I don't want to restrain configuration options to what is available > through Perf's cmd line. The sysFS interface is there to complement > what is currently not available. In practice this means that part of your trace configuration will be global and part -- per event, which can indeed work if you only have one event at a time, but again, makes using perf infrastructure redundant for this driver. For multiple events this doesn't make much sense. Regards, -- Alex