Received: by 10.223.176.5 with SMTP id f5csp902643wra; Fri, 2 Feb 2018 08:00:01 -0800 (PST) X-Google-Smtp-Source: AH8x225Z3f6XKwr6XCEVm4W2ADOafviC5/Xi+nGi2lbmtwb0WSx/oE6ddrAOiRzeZQmRMAliNtUB X-Received: by 10.98.172.7 with SMTP id v7mr673324pfe.66.1517587201469; Fri, 02 Feb 2018 08:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517587201; cv=none; d=google.com; s=arc-20160816; b=DcmaqeT9gxc9jPyV/KppuD7DTx3tRXbJMChtenRhE00IgmdyjfEYDYwFgCHf4VpwSS CpqujAg/cRz6Uwj1sgqKoo/ykttOSN9ZEge/otLByESG/NzQcSR9nFSvmdA+IK9XwkJB MLC+9K92np0MNwm5LNLqkiV89Q1NgYSv/kmBlD/Uags1lpkRf8rbx3o/u34IA2v8itNG yFqTBs47vQruPq2m/P8KzpKcIQwHgw2Gv1ma+hHRskQ8EdsGeVJql9s5ZcdikbsBYbqJ niCgzomPJ1oQRNagaP7FIMtNNfqALkckmL6Qpfos3lGSaEsjtxaP7jgC9pmKpPNXMJT5 vwKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=oEj2/lB9cBnq41p6AXVit7h/8H5/9zxKMARgiObPOgc=; b=uiE+qKEJKJ7j2TKIDrrx4rrF361FSdohCVVyvsNcm27PlfP5OrhFeZXt8IdpYjqGuy MCm2LxWFhh211+lrbYq+fj++2Z/n/qi0ylkoMam7DVOwEJr+v2yzZDccggcBPcVuhHoR v30fQeY4qOpyID7781aY3HKV8WrDE4l44PPYvXfOUcu70FSs8Wj6QynYapMny40Ndy6X pldLrZ5b4vNG1R69VejmdThEv2836csOGKFAeywH1tHKQZPLDh7K9o8YHzrTatqpSCkP fILQcUyu1CwXkC9yMbD8yw9zoUIG9mz3h6CRuhx4MQ1LmWc4lRjEkmEbGCb4nnOCtTQo gKMg== ARC-Authentication-Results: i=1; mx.google.com; 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 77si2013090pfz.87.2018.02.02.07.59.46; Fri, 02 Feb 2018 08:00:01 -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; 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 S1752175AbeBBP5p (ORCPT + 99 others); Fri, 2 Feb 2018 10:57:45 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:49871 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751655AbeBBP5i (ORCPT ); Fri, 2 Feb 2018 10:57:38 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ehdfk-0004m9-19; Fri, 02 Feb 2018 16:54:40 +0100 Date: Fri, 2 Feb 2018 16:57:33 +0100 (CET) From: Thomas Gleixner To: Lina Iyer 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 In-Reply-To: <20180202142200.6229-4-ilina@codeaurora.org> Message-ID: References: <20180202142200.6229-1-ilina@codeaurora.org> <20180202142200.6229-4-ilina@codeaurora.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + */ > + > +#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. 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? Thanks, tglx