mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Waiman Long <llong@redhat.com>
To: Tzung-Bi Shih <tzungbi@kernel.org>, Waiman Long <llong@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>, Will Deacon <will@kernel.org>,
	Boqun Feng <boqun.feng@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] lockdep: Add header and footer to surround warning reports
Date: Tue, 16 Dec 2025 21:57:30 -0500	[thread overview]
Message-ID: <b52e45ad-1495-41ce-ac63-08253d63a978@redhat.com> (raw)
In-Reply-To: <aUH5-cGhJiIq-RA1@google.com>

On 12/16/25 7:31 PM, Tzung-Bi Shih wrote:
> On Tue, Dec 16, 2025 at 11:20:45AM -0500, Waiman Long wrote:
>> On 12/15/25 2:26 AM, Tzung-Bi Shih wrote:
>>> Add header and footer to improve log parsing and automated analysis.
>>> This makes lockdep output easier to interpret.
>>>
>>> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
>>> ---
>>> v2:
>>> - asm/bugs.h -> linux/bug.h.
>>>
>>> v1: https://lore.kernel.org/all/20251114062730.1828416-1-tzungbi@kernel.org/
>>>
>>>    kernel/locking/lockdep.c | 34 ++++++++++++++++++++++++++++++++++
>>>    1 file changed, 34 insertions(+)
>>>
>>> diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
>>> index 2d4c5bab5af8..adbc44c3808d 100644
>>> --- a/kernel/locking/lockdep.c
>>> +++ b/kernel/locking/lockdep.c
>>> @@ -58,6 +58,7 @@
>>>    #include <linux/context_tracking.h>
>>>    #include <linux/console.h>
>>>    #include <linux/kasan.h>
>>> +#include <linux/bug.h>
>>>    #include <asm/sections.h>
>>> @@ -110,6 +111,11 @@ static __init int kernel_lockdep_sysctls_init(void)
>>>    late_initcall(kernel_lockdep_sysctls_init);
>>>    #endif /* CONFIG_SYSCTL */
>>> +static void print_footer(void)
>>> +{
>>> +	pr_warn("---[ end trace %016llx ]---\n", 0ULL);
>> What is the purpose of putting 16 '0' in this "end trace" line? Is it
>> related to how your parsing script works?
> Mostly wanted to align to print_oops_end_marker() in kernel/panic.c.  Before
> e83a4472bf9f ("panic: remove oops_id"), it was an oops ID.  My parsing script
> doesn't rely on the 16 '0's but existing parsers might.
>
> I have no strong opinion.  Should we just remove the 16 '0's here?

These are warning messages, not panic. So I would prefer not to have 
them if they serve no useful purpose and can cause confusion.

Cheers,
Longman

>


  reply	other threads:[~2025-12-17  2:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20251215072640.2580384-1-tzungbi@kernel.org>
2025-12-16  1:03 ` Tzung-Bi Shih
     [not found] ` <0ae3277b-bea5-40ce-8eaa-10bb8b47c46a@redhat.com>
2025-12-17  0:31   ` Tzung-Bi Shih
2025-12-17  2:57     ` Waiman Long [this message]
2025-12-17  5:26       ` Tzung-Bi Shih

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=b52e45ad-1495-41ce-ac63-08253d63a978@redhat.com \
    --to=llong@redhat.com \
    --cc=boqun.feng@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=tzungbi@kernel.org \
    --cc=will@kernel.org \
    /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

all inboxes | Powered by JetHome®