From: Neeraj Upadhyay <neeraju@codeaurora.org>
To: Sangmoon Kim <sangmoon.kim@samsung.com>, paulmck@kernel.org
Cc: jiangshanlai@gmail.com, joel@joelfernandes.org,
josh@joshtriplett.org, mathieu.desnoyers@efficios.com,
rcu@vger.kernel.org, rostedt@goodmis.org
Subject: Re: [PATCH] rcu/tree: Add a trace event for RCU stall warnings
Date: Wed, 24 Feb 2021 14:48:32 +0530 [thread overview]
Message-ID: <2406eacc-b270-989d-79ce-9e97817b7458@codeaurora.org> (raw)
In-Reply-To: <20210222082539.15573-1-sangmoon.kim@samsung.com>
Hi Sangmoon,
On 2/22/2021 1:55 PM, Sangmoon Kim wrote:
>
>
>> -----Original Message-----
>> From: Paul E. McKenney <paulmck@kernel.org>
>> Sent: Friday, February 19, 2021 3:59 AM
>>
>> On Thu, Feb 18, 2021 at 01:24:16PM -0500, Steven Rostedt wrote:
>>> On Thu, 18 Feb 2021 09:00:12 -0800
>>> "Paul E. McKenney" <paulmck@kernel.org> wrote:
>>>
>>>> OK, I will bite. ;-)
>>>
>>> Do I turn into a wearwolf?
>>
>> Maybe even a wash-n-wear wolf. ;-)
>>
>>>> Can the saving of console into trace buffers be easily enabled and
>>>> disabled within the code?
>>>
>>> Well, we do have this for ftrace:
>>>
>>> echo 'enable_event:printk:console' > events/rcu/rcu_stall_warning/trigger
>>>
>>> Would enable the printk console to be traced to the ring buffer once the
>>> stall is triggered, and not before hand.
>>>
>>>> If so, does enabling and disabling nest?
>>>
>>> It has a disable as well, but unfortunately its global and does not nest.
>>> We could always implement a percpu trigger that can nest though.
>>
>> So Sangmoon could have a module react to an RCU CPU stall warning
>> tracepoint by turning on tracing of console messages. If there was a
>> start-stop pair of RCU CPU stall warning tracepoints, he could turn it
>> off as well.
>>
>> Not sure if that is what Sangmoon is looking for, but it is a possibility.
>>
>> Thanx, Paul
>
> Thank you. I'm learning the new things through this review.
>
> Copying console messages is not really necessary to me. I wanted to say
> this tracepoint can also be used in such way for debugging purpose.
>
In case we want to use this trace event, to capture RCU stall
information, which comes on console, into trace buffers; why not have
these events at the start of the functions like print_other_cpu_stall(),
print_cpu_stall() rather than at the end ?
Thanks
Neeraj
> What I need is that a module records the stall happening and report the
> stall event when kernel panic occurred. Of course, there is no detailed
> information there, but it helps developers to recognize that the stall
> has occurred in the system.
>
> The usage scenario is as follows.
> There is a kernel module for debugging.
> The module registers a probe function using register_trace_rcu_stall_warning().
> When a stall warning event occurs, the module records the event into its own buffer.
> When a kernel panic occurs, the developers can see the report generated
> by the module and can also see the buffer of the module directly through Ramdump.
>
> Thanks,
> Sangmoon
>
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
member of the Code Aurora Forum, hosted by The Linux Foundation
next prev parent reply other threads:[~2021-02-24 9:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210215090241epcas1p17b1319d38de5a09a9d65a06ebf936866@epcas1p1.samsung.com>
2021-02-15 8:53 ` [PATCH] rcu/tree: Add a trace event for RCU stall warnings Sangmoon Kim
2021-02-16 17:50 ` Paul E. McKenney
2021-02-17 13:49 ` Sangmoon Kim
2021-02-17 18:17 ` Neeraj Upadhyay
2021-02-18 12:52 ` Sangmoon Kim
2021-02-18 14:17 ` Mathieu Desnoyers
2021-02-18 15:06 ` Paul E. McKenney
2021-02-18 15:50 ` Mathieu Desnoyers
2021-02-18 16:58 ` Uladzislau Rezki
2021-02-18 17:24 ` Mathieu Desnoyers
2021-02-18 18:43 ` Uladzislau Rezki
2021-02-18 17:00 ` Paul E. McKenney
2021-02-18 17:56 ` Mathieu Desnoyers
2021-02-18 18:13 ` Paul E. McKenney
2021-02-18 18:24 ` Steven Rostedt
2021-02-18 18:59 ` Paul E. McKenney
2021-02-22 8:25 ` Sangmoon Kim
2021-02-24 9:18 ` Neeraj Upadhyay [this message]
2021-02-24 15:17 ` Sangmoon Kim
2021-02-25 4:06 ` [PATCH v2] " Sangmoon Kim
2021-02-28 19:47 ` Uladzislau Rezki
2021-03-02 11:55 ` [PATCH v3] " Sangmoon Kim
2021-03-02 17:04 ` Neeraj Upadhyay
2021-03-02 19:20 ` Paul E. McKenney
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=2406eacc-b270-989d-79ce-9e97817b7458@codeaurora.org \
--to=neeraju@codeaurora.org \
--cc=jiangshanlai@gmail.com \
--cc=joel@joelfernandes.org \
--cc=josh@joshtriplett.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=paulmck@kernel.org \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=sangmoon.kim@samsung.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