Received: by 10.223.176.5 with SMTP id f5csp2631272wra; Mon, 5 Feb 2018 07:19:42 -0800 (PST) X-Google-Smtp-Source: AH8x227zGWtEycuM6EisHkekBk8ZEbg4iH/m/oe12Gz3svo9yf3pN5LDwa7w/7bgUOGEqEGDOX4H X-Received: by 2002:a17:902:402:: with SMTP id 2-v6mr2218418ple.353.1517843982455; Mon, 05 Feb 2018 07:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517843982; cv=none; d=google.com; s=arc-20160816; b=XxkRdPVtf68Ys1ovA0wLCB02efLVd5F32AixU7sY0fezHCsrGVKDGCdov+fwlQjINX UiC7N7Hyn7cH/edZYAydFJKpyKjUhy2f/m4LMTc0qhNXKEg+2cMLfvKXzXqS02CmUqyM XIdkxboB5zS1ZG/vKjBqfUMHixH+0CKNiZgpeEtdT/SxVNQ9/AyJPzi5O4E6yQuXe1GY hEec8sCByJr5tJGUWlsbeBfApkHr95LJ6p796gqMoIOdWNVsZPtw3bZh4qlRIOzya5mD 69edBc1JXd6WWd25zKflumMOvsMj4MGrmdVNrode2f9I0v0+1ow3HH2bFrmtEFPYCafV yCmQ== 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=focBMMfyXKs9c0ObVetF47TTL9vHqyIYgbynt8bX3fA=; b=xD5QtQShuFB+RqiaEsLtkUcC3CYpSvkM5fZBCzEpn63ac0cgd74AqrUsl6RORd10T9 OQaHpnHrOn1DcgO4Nur2zwtrCHi9q2C5jksQWJxiNfPZ/jviCx25EwZuLSpjFcoTXfZD nDxjE15KazJQuxP3F/TipZdh5eBXsri+PK4vi6PaIm6XI9PvcC7125CcgMzNg5BjNOAP A3APi+hmIj8ouxFJ1Gc2yo5BW7/siUKOnwMoRuf1QjlWK2cyzqIRyCR8AdJOVOalLbFn fTabdagTyPLpTNuz6hKZ3lh/Eg9v1qdyHk4mDi4xTPageJ7NgR1gp/h0rf+O6krT4V54 O2ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=HayMMCi3; dkim=pass header.i=@codeaurora.org header.s=default header.b=PadTBZhC; 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 w13si5549339pgp.606.2018.02.05.07.19.28; Mon, 05 Feb 2018 07:19:42 -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=HayMMCi3; dkim=pass header.i=@codeaurora.org header.s=default header.b=PadTBZhC; 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 S1753227AbeBEPSy (ORCPT + 99 others); Mon, 5 Feb 2018 10:18:54 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57060 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753037AbeBEPSs (ORCPT ); Mon, 5 Feb 2018 10:18:48 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5C65C60A26; Mon, 5 Feb 2018 15:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517843928; bh=ATnfdH9VvG1Wf8qZeaecdnrmtyiaFfJmmNoYz/ZowwU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HayMMCi3lU+5iRRzukdrU2tOl+wt1PWcVt4mLPtakQOq2j1Govf+cNpzdLZYmmYe1 nEat0aCSflPW50pxh0G7TmbIQsxbOLLQPKCswTPLNzvlvNfCE0vuSxFkCfGBnAlJh2 JYB7NF5oyRmLV3mDitd9YguifmAgCypbo/2V9/w4= 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 4FC61601C4; Mon, 5 Feb 2018 15:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517843927; bh=ATnfdH9VvG1Wf8qZeaecdnrmtyiaFfJmmNoYz/ZowwU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PadTBZhCSTJaHpRV6gPZ/Rk9xcthJjpWCyAYl6/XsSEIrx5DDzF2SiS+eW9aKkJ/r JoCjPvkOySJvW4e6dBnAKg7oGK8G82krjomW3uvHNzgeNbcLd4GHhEuBcwhR/0JLOJ PmBTn7KU3bF2dDQ0kbXhutU1aWOscycCGYbN5y44= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4FC61601C4 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: Mon, 5 Feb 2018 15:18:46 +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: <20180205151846.GA13552@codeaurora.org> References: <20180202142200.6229-1-ilina@codeaurora.org> <20180202142200.6229-4-ilina@codeaurora.org> <20180202230232.GB15464@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180202230232.GB15464@codeaurora.org> 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 23:02 +0000, Lina Iyer wrote: >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. > Memory dumps after a crash have support for FTRACE and it helps greatly on production issues. Hence the preference for FTRACE support. -- Lina