Received: by 10.223.176.5 with SMTP id f5csp4120wra; Fri, 2 Feb 2018 15:19:45 -0800 (PST) X-Google-Smtp-Source: AH8x227foa79jKaZbgkLR7g3HWcPRM+Fdk/Vn19ZFq/CdAmcmA5tKwXMoYMYaGuvh6ewPlydJSIY X-Received: by 10.98.201.199 with SMTP id l68mr41894518pfk.199.1517613585439; Fri, 02 Feb 2018 15:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517613585; cv=none; d=google.com; s=arc-20160816; b=AdxiB8v61aLqdLn7HW/zIsCvheu1V5yjZRu9YTzIhPMDpPvOd4UFQIYAtK751NR8ET pEZGYpopglAa09kmfdaqZpQlGVLV1lLeJjNXsXAuGaOarNsf+oWaMFTDZlY+rHTXIEM3 H/myNFOTmi7rGhWraeYWSotHYACjWTFC4QFr/spIXWn8dVPekSdx3eBpkn40RaGEeBBn Vh3aGNk7amYejpdLUGj8h9m/2DWFf25lNpoNaM/9R5PSwxwL/AAMCASQdaPaTzHORaWQ LN31qOhLYfkjewbFtYkR/cik68jWRw3KS/eBwZ/pk3FNEZCuyijp7ITeTkmNiEbntLpN vIQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=2V6wX3N12UIlsNTs6da0XdA0V9BYWgA/hJ1wDtVB7cY=; b=a9aUYGqw/aqJ7nc//eCJoMO2NKUaNKjtR4vPxVeRRi90ttEBYIBbGs0uSPe9h5oZqZ eFA9AiQtN3PhUsHYL7gwqebkC2nV/jGcvCW0Jdc6OIB1BsKImPn/MA7xecpDGlqgHkSx eTc7+4iDMEGf0HxMPg1eNw1ytYe0smaZZX89EWpr85gTASfYQjqKIgvMbRRUJFDofjRo nW+IX5jwpqEdFwwKvVkEAc9T/T/aWglKLG5Qo7lB2soqJBMsKUXPCDz/aFgFuTzJhbzE Kjd2Ga/a8K04T95cvNg7DeeqMdKoWt4D1JB6pooTx43nD1OM7JDBci7DkrtunL1wFKd8 ZBPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=dzJMMgSk; dkim=pass header.i=@codeaurora.org header.s=default header.b=dzJMMgSk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si2092141pgq.213.2018.02.02.15.19.30; Fri, 02 Feb 2018 15:19:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=dzJMMgSk; dkim=pass header.i=@codeaurora.org header.s=default header.b=dzJMMgSk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752111AbeBBXCn (ORCPT + 99 others); Fri, 2 Feb 2018 18:02:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:53676 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751804AbeBBXCf (ORCPT ); Fri, 2 Feb 2018 18:02:35 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DDBC3607DC; Fri, 2 Feb 2018 23:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517612553; bh=r34jezwDXAZR8XGmXTmshU+ImFESn/QEm7SVc5PO2G0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dzJMMgSkMPkgGANYw5iMZZCubvpQRaFdD3p+8HuESZBAtVUxMk7i9eWcHuDgbUMbg 73rkdcinzH3eirFMER2VV0VV/6gh8Fj8ubm8ptg/lJGpNEcyAFPwWONhGwpEOpYqwh jgZibp5WzkXeDbVUnyRM9EMDOG2Fqo0zypno7L0U= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DA085601A0; Fri, 2 Feb 2018 23:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517612553; bh=r34jezwDXAZR8XGmXTmshU+ImFESn/QEm7SVc5PO2G0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dzJMMgSkMPkgGANYw5iMZZCubvpQRaFdD3p+8HuESZBAtVUxMk7i9eWcHuDgbUMbg 73rkdcinzH3eirFMER2VV0VV/6gh8Fj8ubm8ptg/lJGpNEcyAFPwWONhGwpEOpYqwh jgZibp5WzkXeDbVUnyRM9EMDOG2Fqo0zypno7L0U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DA085601A0 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Fri, 2 Feb 2018 23:02:32 +0000 From: Lina Iyer To: Thomas Gleixner Cc: Jason Cooper , Marc Zyngier , LKML , linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, rnayak@codeaurora.org, asathyak@codeaurora.org, Steven Rostedt , Greg KH Subject: Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE Message-ID: <20180202230232.GB15464@codeaurora.org> References: <20180202142200.6229-1-ilina@codeaurora.org> <20180202142200.6229-4-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 02 2018 at 15:57 +0000, Thomas Gleixner wrote: >On Fri, 2 Feb 2018, Lina Iyer wrote: >> +++ b/include/trace/events/pdc.h >> @@ -0,0 +1,55 @@ >> +/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License version 2 and >> + * only version 2 as published by the Free Software Foundation. >> + * >> + * This program is distributed in the hope that it will be useful, >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU General Public License for more details. > >Can you please use the proper SPDX identifiers instead of the boiler plate? >Same for the driver source file. > Sure. >> + */ >> + >> +#undef TRACE_SYSTEM >> +#define TRACE_SYSTEM pdc >> + >> +#if !defined(_TRACE_PDC_) || defined(TRACE_HEADER_MULTI_READ) >> +#define _TRACE_PDC_H_ >> + >> +#include >> + >> +#define PDC_ENTRY 1 >> +#define PDC_TYPE_CONFIG 2 >> + >> +TRACE_EVENT(irq_pin_config, > >This is really a too generic name for a PDC specific breakpoint. > Hmm.. right. >Aside of that the question is whether this really justifies a trace >point. Wouldn't it be sufficient to use the GENERIC_IRQ_DEBUGFS >infrastructure to make this accessible via debugfs? > > Some product configurations disable debugfs. I will ask around if this can be dropped. -- Lina