Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp4037399rwp; Sat, 15 Jul 2023 15:10:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFN8wTiSNZJaFaJcg8GBoD3Dd88bCYJBJT2SkDpjdcUOBpZksKqR4bqYpUgUncIBHah/0YE X-Received: by 2002:a17:903:22c5:b0:1b8:aded:524c with SMTP id y5-20020a17090322c500b001b8aded524cmr10974491plg.1.1689459056839; Sat, 15 Jul 2023 15:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689459056; cv=none; d=google.com; s=arc-20160816; b=ER1cY/mwWoM8lo43DQcmnPGaVe3yuozzt3f29ZIZtbwTjap4kiCy4ERpCEOe1BFuQ+ rjJDLomlu7ijExYUDMaawdLJOWEHYaLim9TTQzL7ImHnQiZ6J5XNabNxXjvPcCl0xmyu AHUJwDwbW/6siLwoxCmHIH85ztnM+VP8jS5mMDjwhxMCwfHihY8UTJqzp4ZKeyGfOWgh t+iMq21zgs8O35MFxTUkk1d3uoO1sEmkBDrS6gwEI1Eh7fPyhTTgKTUupIGRmuXFpQtd dcCZnxMjyTRN0RT1+g6RidP2nxTl6anAU2OKEq4FaQnXY2gyfe0o8f2I5YaKoD3mA6Pr Xhkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cHDtwPIvMDG5e508GqA/XWqJ0/vjH86c9y5XW3tR/a0=; fh=+JFYQC0DBTCPbLBZyNkKtvKhGGxmIzK/UlcHfX4rvxY=; b=MDee/kmqs8RSzOxa8CINKGt30hR8GIMYDnPxQWWGJN2rgzdFmbqWeXRNO0w58xJTXJ QAPIc9qANREIUbeu+oip66uIqTWQ5/BpeTYUJvHHCRlwh53ZfD9Y4ttFWB/B+oT/8LUL v97xQODbRTw2cVzkk2dBhGu8lW47dS06Bj7AW4nsIqseupjMLolXgC6gpvQep63shhlK ZpnbtzgsYWK4E35ymB86aXk10CXnkeGfYchR8nZr8dy1DsPPrTXS3nACAzpZcXB945H1 Mlr2x/FrELhYBmMTUGwOX4BzT9A4nk8gNmhHxaAO3wBlQ4uzW92canNE+8hZMrNPLpMQ Ll8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIm6gh+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a170902c98d00b001b8b4198474si8765686plc.282.2023.07.15.15.10.44; Sat, 15 Jul 2023 15:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WIm6gh+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbjGOVa1 (ORCPT + 99 others); Sat, 15 Jul 2023 17:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjGOVa0 (ORCPT ); Sat, 15 Jul 2023 17:30:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00077270A; Sat, 15 Jul 2023 14:30:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A00560BB8; Sat, 15 Jul 2023 21:30:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AC5C433C9; Sat, 15 Jul 2023 21:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689456621; bh=XMEb/elm+pgGpMlhnXd5GXTk4SB+tgLImFkGqaygzss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WIm6gh+Fv2agAUROjp8kseDzWfHI4jD7Jyn/PrfLqxFcLC0bhO92GuHh0C5Mad4Qz GHhoerD/v8U3rJGA2xNa/i81RyX67HHtAY85W/Dcft4cpcvO7EuRzhOQgrgE7+6vg1 dyJhusDgdwikr1OUIK2bJiL8gvsg4zZpKqdLa/gG0Cn6px9hivkePv1z9ZuDy6lKN5 skyuM8WL5txjJJet+HtSwSrq1/wyWpuFtdG8bDl+WtaJQ7DVKzKF8nAfQ2NYkZilIs NUS8/Qz5fvTGZL/2dn3K+1UZEke566yeHnGmo3+NzW4jfm76/+rM9X64vACyPEVgxY IlVQzbdNBazHw== Date: Sat, 15 Jul 2023 14:33:49 -0700 From: Bjorn Andersson To: Gokul krishna Krishnakumar Cc: linux-remoteproc@vger.kernel.org, Mathieu Poirier , linux-kernel@vger.kernel.org, Trilok Soni , Satya Durga Srinivasu Prabhala , Rajendra Nayak , Elliot Berman , Guru Das Srinagesh , Sibi Sankar , Melody Olvera Subject: Re: [PATCH v3 1/2] remoteproc: Introduce traces for remoteproc events Message-ID: References: <5c7c2657d12808e211942d71ad79e3846f4e70bb.1683741283.git.quic_gokukris@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c7c2657d12808e211942d71ad79e3846f4e70bb.1683741283.git.quic_gokukris@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 10, 2023 at 11:05:03AM -0700, Gokul krishna Krishnakumar wrote: > Adding Traces for the following remoteproc events: > rproc_subdev_event, > rproc_interrupt_event, > rproc_load_event, > rproc_start_event, > rproc_stop_event No need to list the individual trace events, instead please use the commit message do capture what problem(s) you intend you have for these trace events - so that someone reading this can understand why these particular events was added (and why others weren't). > > Signed-off-by: Gokul krishna Krishnakumar > --- > drivers/remoteproc/Makefile | 1 + > drivers/remoteproc/qcom_tracepoints.c | 12 +++ > include/trace/events/rproc_qcom.h | 128 ++++++++++++++++++++++++++ > 3 files changed, 141 insertions(+) > create mode 100644 drivers/remoteproc/qcom_tracepoints.c > create mode 100644 include/trace/events/rproc_qcom.h > > diff --git a/drivers/remoteproc/Makefile b/drivers/remoteproc/Makefile > index 91314a9b43ce..3399fcaba39b 100644 > --- a/drivers/remoteproc/Makefile > +++ b/drivers/remoteproc/Makefile > @@ -10,6 +10,7 @@ remoteproc-y += remoteproc_debugfs.o > remoteproc-y += remoteproc_sysfs.o > remoteproc-y += remoteproc_virtio.o > remoteproc-y += remoteproc_elf_loader.o > +remoteproc-y += qcom_tracepoints.o > obj-$(CONFIG_REMOTEPROC_CDEV) += remoteproc_cdev.o > obj-$(CONFIG_IMX_REMOTEPROC) += imx_rproc.o > obj-$(CONFIG_IMX_DSP_REMOTEPROC) += imx_dsp_rproc.o > diff --git a/drivers/remoteproc/qcom_tracepoints.c b/drivers/remoteproc/qcom_tracepoints.c > new file mode 100644 > index 000000000000..1b587ef54aa7 > --- /dev/null > +++ b/drivers/remoteproc/qcom_tracepoints.c > @@ -0,0 +1,12 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#define CREATE_TRACE_POINTS > +#include > +EXPORT_TRACEPOINT_SYMBOL(rproc_load_event); > +EXPORT_TRACEPOINT_SYMBOL(rproc_start_event); > +EXPORT_TRACEPOINT_SYMBOL(rproc_stop_event); > +EXPORT_TRACEPOINT_SYMBOL(rproc_interrupt_event); > +EXPORT_TRACEPOINT_SYMBOL(rproc_subdev_event); > diff --git a/include/trace/events/rproc_qcom.h b/include/trace/events/rproc_qcom.h > new file mode 100644 > index 000000000000..48ad26ce18a3 > --- /dev/null > +++ b/include/trace/events/rproc_qcom.h > @@ -0,0 +1,128 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#undef TRACE_SYSTEM > +#define TRACE_SYSTEM rproc_qcom > + > +#if !defined(_TRACE_RPROC_QCOM_H) || defined(TRACE_HEADER_MULTI_READ) > +#define _TRACE_RPROC_QCOM_H > +#include > +#include > + > +/* > + * Tracepoints for remoteproc and subdevice events > + */ > +TRACE_EVENT(rproc_load_event, Please split these into more specific events, so that one can easily enable specific events depending on which answers one is looking for. Please avoid the _event suffix. Regards, Bjorn