From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752762AbcD0JKU (ORCPT ); Wed, 27 Apr 2016 05:10:20 -0400 Received: from foss.arm.com ([217.140.101.70]:33031 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbcD0JKR (ORCPT ); Wed, 27 Apr 2016 05:10:17 -0400 Subject: Re: [PATCH V4 13/18] coresight: tmc: make sysFS and Perf mode mutually exclusive To: Mathieu Poirier , linux-arm-kernel@lists.infradead.org References: <1461708634-6327-1-git-send-email-mathieu.poirier@linaro.org> <1461708634-6327-14-git-send-email-mathieu.poirier@linaro.org> Cc: linux-kernel@vger.kernel.org From: Suzuki K Poulose Message-ID: <572081F7.9060709@arm.com> Date: Wed, 27 Apr 2016 10:10:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1461708634-6327-14-git-send-email-mathieu.poirier@linaro.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/04/16 23:10, Mathieu Poirier wrote: > The sysFS and Perf access methods can't be allowed to interfere > with one another. As such introducing guards to access > functions that prevents moving forward if a TMC is already > being used. > > Signed-off-by: Mathieu Poirier > --- > drivers/hwtracing/coresight/coresight-tmc-etf.c | 60 +++++++++++++++++++++++- > drivers/hwtracing/coresight/coresight-tmc-etr.c | 62 +++++++++++++++++++++++-- > 2 files changed, 117 insertions(+), 5 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c > index b5e5e6ac67eb..b11c52be54a9 100644 > --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c > +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c Reviewed-by: Suzuki K Poulose From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suzuki.Poulose@arm.com (Suzuki K Poulose) Date: Wed, 27 Apr 2016 10:10:15 +0100 Subject: [PATCH V4 13/18] coresight: tmc: make sysFS and Perf mode mutually exclusive In-Reply-To: <1461708634-6327-14-git-send-email-mathieu.poirier@linaro.org> References: <1461708634-6327-1-git-send-email-mathieu.poirier@linaro.org> <1461708634-6327-14-git-send-email-mathieu.poirier@linaro.org> Message-ID: <572081F7.9060709@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 26/04/16 23:10, Mathieu Poirier wrote: > The sysFS and Perf access methods can't be allowed to interfere > with one another. As such introducing guards to access > functions that prevents moving forward if a TMC is already > being used. > > Signed-off-by: Mathieu Poirier > --- > drivers/hwtracing/coresight/coresight-tmc-etf.c | 60 +++++++++++++++++++++++- > drivers/hwtracing/coresight/coresight-tmc-etr.c | 62 +++++++++++++++++++++++-- > 2 files changed, 117 insertions(+), 5 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c > index b5e5e6ac67eb..b11c52be54a9 100644 > --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c > +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c Reviewed-by: Suzuki K Poulose