From: Deepak Kumar Singh <quic_deesin@quicinc.com>
To: Chris Lew <quic_clew@quicinc.com>,
Sudeepgoud Patil <quic_sudeepgo@quicinc.com>,
<quic_bjorande@quicinc.com>, <andersson@kernel.org>,
<mathieu.poirier@linaro.org>
Cc: <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<linux-remoteproc@vger.kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: Re: [PATCH V2 2/2] soc: qcom: smp2p: Introduce tracepoint support
Date: Wed, 12 Jun 2024 14:42:27 +0530 [thread overview]
Message-ID: <5a2dbcf9-8201-4e94-94ba-e8377d5c9d98@quicinc.com> (raw)
In-Reply-To: <0318b0c2-5686-4565-b75b-fa1ecfe61740@quicinc.com>
On 6/12/2024 4:35 AM, Chris Lew wrote:
>
>
> On 6/11/2024 5:33 AM, Sudeepgoud Patil wrote:
>> This commit introduces tracepoint support for smp2p,
>> enabling logging of communication between local and remote processors.
>> The tracepoints include information about the remote processor ID,
>> remote subsystem name, negotiation details, supported features,
>> bit change notifications, and ssr activity.
>> These tracepoints are valuable for debugging issues between subsystems.
>>
>> Signed-off-by: Sudeepgoud Patil <quic_sudeepgo@quicinc.com>
>> ---
> ...
>> diff --git a/drivers/soc/qcom/trace-smp2p.h
>> b/drivers/soc/qcom/trace-smp2p.h
>> new file mode 100644
>> index 000000000000..833782460b57
>> --- /dev/null
>> +++ b/drivers/soc/qcom/trace-smp2p.h
>> @@ -0,0 +1,116 @@
>> +/* SPDX-License-Identifier: GPL-2.0 */
>> +/*
>> + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights
>> reserved.
>> + */
>> +
>> +#undef TRACE_SYSTEM
>> +#define TRACE_SYSTEM qcom_smp2p
>> +
>> +#if !defined(__QCOM_SMP2P_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
>> +#define __QCOM_SMP2P_TRACE_H__
>> +
>> +#include <linux/tracepoint.h>
>> +
>> +#define SMP2P_FEATURE_SSR_ACK 0x1
>
> Now that I see it, redefining the the feature flag here seems a bit out
> of place. I'm not sure if it's worth kicking off a header file for this
> single define though.
>
I think it is ok to have this define in smp2p.c, as that is the only
place where it is being used.
>> +
>> +TRACE_EVENT(smp2p_ssr_ack,
>> + TP_PROTO(unsigned int remote_pid, char *irq_devname),
>> + TP_ARGS(remote_pid, irq_devname),
>> + TP_STRUCT__entry(
>> + __field(u32, remote_pid)
>> + __string(irq_devname, irq_devname)
>> + ),
>> + TP_fast_assign(
>> + __entry->remote_pid = remote_pid;
>> + __assign_str(irq_devname, irq_devname);
>> + ),
>> + TP_printk("%d: %s: SSR detected, doing SSR Handshake",
>> + __entry->remote_pid,
>> + __get_str(irq_devname)
>> + )
>> +);
>> +
>
> I don't think we need to pass remote_pid into all of the traces if we
> have a unique name "irq_devname" to identify the remote now. We could
> remove remote_pid from all the trace event arguments.
>
> We can probably drop the "doing SSR Handshake" part of this print. I
> think it can be assumed that we're doing the handshake once we've
> detected SSR.
prev parent reply other threads:[~2024-06-12 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 12:33 [PATCH V2 0/2] Add tracepoint support and remote name mapping to smp2p Sudeepgoud Patil
2024-06-11 12:33 ` [PATCH V2 1/2] soc: qcom: smp2p: Add remote name into smp2p irq devname Sudeepgoud Patil
2024-06-11 16:06 ` Bjorn Andersson
2024-06-11 17:53 ` Chris Lew
2024-06-11 19:19 ` Bjorn Andersson
2024-06-11 12:33 ` [PATCH V2 2/2] soc: qcom: smp2p: Introduce tracepoint support Sudeepgoud Patil
2024-06-11 23:05 ` Chris Lew
2024-06-12 9:12 ` Deepak Kumar Singh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a2dbcf9-8201-4e94-94ba-e8377d5c9d98@quicinc.com \
--to=quic_deesin@quicinc.com \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=quic_bjorande@quicinc.com \
--cc=quic_clew@quicinc.com \
--cc=quic_sudeepgo@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox