Received: by 10.223.176.46 with SMTP id f43csp4480526wra; Tue, 23 Jan 2018 09:58:39 -0800 (PST) X-Google-Smtp-Source: AH8x2279fEufpj+/lSNO3rj5JD+Ko9cT/0CRDqBoDf1lfWlF4cWkFRShg/z8coOviI/+XEh+H3nN X-Received: by 10.107.30.8 with SMTP id e8mr4750470ioe.184.1516730319052; Tue, 23 Jan 2018 09:58:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516730318; cv=none; d=google.com; s=arc-20160816; b=TaW+p54sZ1VhKwujo6ghqLRLghEnZMZ3At8cUn9iD9wOUiDv/wJWK/GH30JSZG4GQQ rJIhBsh5EYAJrr4rG14JYnvycaX1ArJo1qXeVPcUKgBYd1REe240ms5omgWC2LiaCHVt dOgg7I1E31exGjXv6Rc4Lu12iqr8edL01VWHYr7wy6/3aT7iPVL0wQnF2kbQLfDBjKx8 LYxyDxXdJaIXAGuhvU9Ku2NGmQKE9Jm4xJBIU24OgKa14SMz+TSvW2vFqa34FKVe0WYL uxbvjCXibGnrZaFh0hmw+spbNL9t7/mWh8cHXEHCdFq4HAQGgGSooQWz4P+gBgeJ/siL qPNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=JmudDbuRgQD6jcxwy7t3OULMqWluelK8rm5tR8Yz+R8=; b=wVPuvvVbQU7AolAMtco4dbjdKFqvD6PsMXb5EEQBSQ3xtlTz9AR6Y/LgpVxcdojgXb OXVhTItrwS9qt/ho2JmnJ3kd2NTLkNTmFsRSbIYm1rLK4EYlA1Nwgt2Gjtp9ro7BKZ5e 7W9PhznPsPTd2zAVbxrn7x3teUO8G0OEu9zbB73fv2zLixkYSXKvThe/y6pTgcreu4OE EMkLFyTO20aoCf5DcyNzRMutm+ZFt8IViDRywHCTrYT9Mbks29Dan9G8gaSbox7I+tQK BMc20TaW3SwoFDHeHtNgCtzDLbA+KdJMhG+mhO/e7Iw/EthdFih147kjSNz+815RWc5j heLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Mq9mSIwN; dkim=pass header.i=@codeaurora.org header.s=default header.b=OXkbLvwE; 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 d5si11583553ioj.147.2018.01.23.09.58.26; Tue, 23 Jan 2018 09:58:38 -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=Mq9mSIwN; dkim=pass header.i=@codeaurora.org header.s=default header.b=OXkbLvwE; 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 S1752052AbeAWR5x (ORCPT + 99 others); Tue, 23 Jan 2018 12:57:53 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:60640 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbeAWR5u (ORCPT ); Tue, 23 Jan 2018 12:57:50 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 214056090E; Tue, 23 Jan 2018 17:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516730270; bh=iPx8mnMEnKpsZltmZEKktwJr4B6tiUHos6iIitx7y04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mq9mSIwNlQRJhGjN7Ff9W05iHc0MWV4vvbeNDQOXV9ypJAoKy99yDNwU3yVJOX8Hg cvhWG1zunINvLQ3yBUOX8ODQZzQCEG5dVJTtHmyvIvd1Cs6vfSUiwx6m3efZb+EJNu cM01tD3at5bHdvwJjW8l49RGyGYUdYZUD9tZJ8/g= 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 codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4730C60541; Tue, 23 Jan 2018 17:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516730269; bh=iPx8mnMEnKpsZltmZEKktwJr4B6tiUHos6iIitx7y04=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OXkbLvwErXDpN3qP/GYVRW/7jG+IsLFKW1z7XPw1/88/+gAwspmabmZsiIXdAFqQs CFryiPJwIyXJ674J5bGabs/BrmOKrZoG8w+UoP+Zg0KdMyS024EjW65lGT3YJJpSs5 pHFdfV34l2NtJXWXQaMKQjE6YcaL1b7mltUYrs0E= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4730C60541 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 From: Lina Iyer To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, sboyd@codeaurora.org, rnayak@codeaurora.org, asathyak@codeaurora.org, Lina Iyer , Steven Rostedt Subject: [PATCH RFC 3/4] drivers: irqchip: pdc: log PDC info in FTRACE Date: Tue, 23 Jan 2018 10:56:55 -0700 Message-Id: <20180123175656.11942-4-ilina@codeaurora.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180123175656.11942-1-ilina@codeaurora.org> References: <20180123175656.11942-1-ilina@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Archana Sathyakumar Log key PDC pin configuration in FTRACE. Cc: Steven Rostedt Signed-off-by: Archana Sathyakumar Signed-off-by: Lina Iyer --- drivers/irqchip/qcom-pdc.c | 6 ++++++ include/trace/events/pdc.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 include/trace/events/pdc.h diff --git a/drivers/irqchip/qcom-pdc.c b/drivers/irqchip/qcom-pdc.c index 57f1348bd81c..9b626e9f3a29 100644 --- a/drivers/irqchip/qcom-pdc.c +++ b/drivers/irqchip/qcom-pdc.c @@ -26,6 +26,8 @@ #include #include #include +#define CREATE_TRACE_POINTS +#include "trace/events/pdc.h" #include "qcom-pdc.h" @@ -78,6 +80,7 @@ static inline void pdc_enable_intr(struct irq_data *d, bool on) break; udelay(5); } while (1); + trace_irq_pin_config("enable", (u32)pin_out, (u32)d->hwirq, 0, on); spin_unlock_irqrestore(&pdc_lock, flags); WARN_ON(r_enable != enable); } @@ -161,6 +164,9 @@ static int qcom_pdc_gic_set_type(struct irq_data *d, unsigned int type) udelay(5); } while (1); + trace_irq_pin_config("type_config", (u32)pin_out, (u32)d->hwirq, + pdc_type, 0); + /* * If type is edge triggered, forward that as Rising edge as PDC * takes care of converting falling edge to rising edge signal diff --git a/include/trace/events/pdc.h b/include/trace/events/pdc.h new file mode 100644 index 000000000000..bec54c414880 --- /dev/null +++ b/include/trace/events/pdc.h @@ -0,0 +1,50 @@ +/* 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. + */ + +#undef TRACE_SYSTEM +#define TRACE_SYSTEM pdc + +#if !defined(_TRACE_PDC_) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_PDC_H_ + +#include + +TRACE_EVENT(irq_pin_config, + + TP_PROTO(char *func, u32 pin, u32 hwirq, u32 type, u32 enable), + + TP_ARGS(func, pin, hwirq, type, enable), + + TP_STRUCT__entry( + __field(char *, func) + __field(u32, pin) + __field(u32, hwirq) + __field(u32, type) + __field(u32, enable) + ), + + TP_fast_assign( + __entry->pin = pin; + __entry->func = func; + __entry->hwirq = hwirq; + __entry->type = type; + __entry->enable = enable; + ), + + TP_printk("%s hwirq:%u pin:%u type:%u enable:%u", + __entry->func, __entry->pin, __entry->hwirq, __entry->type, + __entry->enable) +); + +#endif +#define TRACE_INCLUDE_FILE pdc +#include -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project