From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lina Iyer Subject: Re: [PATCH RFC v2 3/3] drivers: irqchip: pdc: log PDC info in FTRACE Date: Fri, 2 Feb 2018 23:02:32 +0000 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 Return-path: 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 Content-Disposition: inline In-Reply-To: Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org 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 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