From patchwork Mon Nov 16 21:44:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rishabh Bhatnagar X-Patchwork-Id: 11910911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EE62C388F9 for ; Mon, 16 Nov 2020 21:44:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BAC8322240 for ; Mon, 16 Nov 2020 21:44:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="PPN6bbZ4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728785AbgKPVow (ORCPT ); Mon, 16 Nov 2020 16:44:52 -0500 Received: from m42-4.mailgun.net ([69.72.42.4]:10732 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbgKPVow (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: WyI4ZWZiZiIsICJsaW51eC1yZW1vdGVwcm9jQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== 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 5fb2f2d2ba0e43f35526898a (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) 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-remoteproc@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