remoteproc: qcom: Add subdevice tracing

This change adds trace events to rproc subdevices to get an
estimate of how long each subdevice takes to run.

Change-Id: I513a6d2c3c73c03202a042d2704c79818a4f0aa0
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
[quic_gurus@quicinc.com: Fix merge conflicts]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
This commit is contained in:
Siddharth Gupta 2021-08-30 18:58:11 -07:00 committed by Guru Das Srinagesh
parent 69135cae7d
commit 0a1512cb6f
4 changed files with 16 additions and 1 deletions

View File

@ -22,7 +22,8 @@ obj-$(CONFIG_KEYSTONE_REMOTEPROC) += keystone_remoteproc.o
obj-$(CONFIG_MESON_MX_AO_ARC_REMOTEPROC)+= meson_mx_ao_arc.o
obj-$(CONFIG_PRU_REMOTEPROC) += pru_rproc.o
obj-$(CONFIG_QCOM_PIL_INFO) += qcom_pil_info.o
obj-$(CONFIG_QCOM_RPROC_COMMON) += qcom_common.o
obj-$(CONFIG_QCOM_RPROC_COMMON) += rproc_qcom_common.o
rproc_qcom_common-y := qcom_common.o qcom_tracepoints.o
obj-$(CONFIG_QCOM_Q6V5_COMMON) += qcom_q6v5.o
obj-$(CONFIG_QCOM_Q6V5_ADSP) += qcom_q6v5_adsp.o
obj-$(CONFIG_QCOM_Q6V5_MSS) += qcom_q6v5_mss.o

View File

@ -391,6 +391,7 @@ static void smd_subdev_stop(struct rproc_subdev *subdev, bool crashed)
if (!smd->edge)
return;
trace_rproc_qcom_event(dev_name(smd->dev->parent), SMD_SUBDEV_NAME,
crashed ? "crash stop" : "stop");

View File

@ -15,6 +15,9 @@
#include <linux/rpmsg.h>
#include <trace/events/rproc_qcom.h>
#define CREATE_TRACE_POINTS
#include <trace/events/rproc_qcom.h>
#include "qcom_common.h"
#define SYSMON_NOTIF_TIMEOUT CONFIG_RPROC_SYSMON_NOTIF_TIMEOUT

View File

@ -0,0 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Qualcomm Technologies, Inc. Peripheral Image Loader helpers
*
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
*/
#define CREATE_TRACE_POINTS
#include <trace/events/rproc_qcom.h>
EXPORT_TRACEPOINT_SYMBOL(rproc_qcom_event);