Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3435912pxb; Mon, 16 Nov 2020 14:52:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMjneg6Rs0lcA1CGo5tWWCnBg74xqRS8y/CyuCqPJymKRhE+4QN0lV/I8toGV5iETHH/Sd X-Received: by 2002:a50:dac9:: with SMTP id s9mr17172506edj.75.1605567178149; Mon, 16 Nov 2020 14:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605567178; cv=none; d=google.com; s=arc-20160816; b=tjgI8oks3j+P96ILbkshl1lvo/EJAJKjEJsWQ1inrr7MzbgYi60Gqhhk3QxjmlQ1yZ iak03HE/ukSwoZ7mqtpQgFQLwmgcdH8d7A181xXXVZ06fQg8EUc9L/iZkczEuYP7CUBA xbb2hrbaCBUbhy3DcJfWM5R8N250/x7vcLAi3fok+3QMi4z2cxngDzamwjE/ZlvdUPRs AEsYf7/+DKKF/EKxj+iMlJz3572+9T/TQccsV/SJy19l3HNaLQJEXw9KmoHayNGUkOWd eqq+cH6pG3ZzfMaGJjOG0XpVyiasjOV3M9nh3VRGqbdlmF38nuHxy6xHQPbPDP5/G79A RdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=oc3xa/mkBQIhUBblS+TGGHDeHXWcsS+CUmK5xECBbt0=; b=BfHmiuTf57Cx0PC8mYrUiRNofwVhrluLl8XjDFqdNBh8Ls059LctpzSv9arFREeZdl woGP9/xoqkP8q7N1kPMr4E4MhwfH5ADLzWdqIrJCMMVxku5D2wYpNhKgsifmMzGTknPz 7YvziO/9gQXsTXELvAoLw79Y++ylpCb4Re6CBffGeOV1Nzx10g4FUAnWANjq9E/DoAJ0 cOVuSVTVgZbCNKNFfCItTDlxLm1MJiPCY5cMmrUXamZUazDM1GzcahIug7rssDLGe2A9 LirVCW65iADlXvwd/ylk1vUeCJNQveP3iitw5qR39Dc52hx8MtlLBgYAocVp0FiFtYrC YfVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=PPN6bbZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si13291665edr.547.2020.11.16.14.52.35; Mon, 16 Nov 2020 14:52:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=PPN6bbZ4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729760AbgKPVow (ORCPT + 99 others); Mon, 16 Nov 2020 16:44:52 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:39063 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbgKPVow (ORCPT ); Mon, 16 Nov 2020 16:44:52 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1605563091; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=oc3xa/mkBQIhUBblS+TGGHDeHXWcsS+CUmK5xECBbt0=; b=PPN6bbZ4LSTp1EiOsDF1BU2xeFuUOWr2/p4kHNQSb68iCU6rYNtHXGdy2b1XGi8kPuMEO0uj JCmoU11Efd5WoxWDpRUQHRHo1gzToHg6Hr5RnYM7hA5sCkESj1oiUaji9QX6bH+aoktT0Inq czzvSD2hUCh4cRcgeX68rFZqsJs= X-Mailgun-Sending-Ip: 69.72.42.4 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5fb2f2d2ba0e43f355268989 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 16 Nov 2020 21:44:50 GMT Sender: rishabhb=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BC5DAC43462; Mon, 16 Nov 2020 21:44:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (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: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id C4042C433C6; Mon, 16 Nov 2020 21:44:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C4042C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bjorn.andersson@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH v2 0/3] Add events to trace remoteproc lifecycle Date: Mon, 16 Nov 2020 13:44:41 -0800 Message-Id: <1605563084-30385-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Insert tracepoints in mdt_loader, qcom_scm and remoteproc_core drivers. These tracepoints will be used to analyze the time taken at each step during bootup/shutdown of the remoteproc. Tracepoints in mdt_loader driver provides information about location and size of firmware segments being loaded. Also trace the scm pas calls used to boot/load remote processors. Changelog: v2 -> v1: - Add traces in qcom_scm driver - Add traces in remoteproc core to trace the remoteproc state - Trace the physical address where segment is loaded in mdt_loader Rishabh Bhatnagar (3): soc: qcom: Add tracepoints to mdt loader firmware: scm: Add tracepoints to scm driver for pas calls remoteproc: Add ftrace events to trace lifecycle of remoteprocs drivers/firmware/qcom_scm.c | 9 ++++ drivers/remoteproc/remoteproc_core.c | 19 +++++++- drivers/soc/qcom/mdt_loader.c | 7 +++ include/trace/events/mdt_loader.h | 38 +++++++++++++++ include/trace/events/qcom_scm.h | 34 ++++++++++++++ include/trace/events/remoteproc.h | 91 ++++++++++++++++++++++++++++++++++++ 6 files changed, 197 insertions(+), 1 deletion(-) create mode 100644 include/trace/events/mdt_loader.h create mode 100644 include/trace/events/qcom_scm.h create mode 100644 include/trace/events/remoteproc.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project