All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Foster <bfoster@redhat.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: linux-bcachefs@vger.kernel.org
Subject: Re: [BUG] trace_printk() broken?
Date: Wed, 14 Dec 2022 12:46:59 -0500	[thread overview]
Message-ID: <Y5oME9YVbg9Me2An@bfoster> (raw)
In-Reply-To: <Y5kLgQh3NVMmUr8W@moria.home.lan>

On Tue, Dec 13, 2022 at 06:32:17PM -0500, Kent Overstreet wrote:
> On Mon, Dec 12, 2022 at 02:20:39PM -0500, Brian Foster wrote:
> > Hi,
> > 
> > While poking around the bcachefs tree I ran into a problem where
> > trace_printk() seems to be broken. I suspect this has something to do
> > with the printbuf bits as it works once I back out some of those
> > changes.
> > 
> > What I observe is that a smaller printk with a fixed string seems to
> > work as expected, but once I add some variable args the message string
> > seems to get chewed up. This results in wonky formatting when reading
> > /sys/kernel/debug/tracing/trace and a read of the corresponding
> > trace_pipe file seems to spin in a livelock.
> 
> I recently noticed it was broken too, but different symptoms - I wasn't getting
> any output at all. Thanks for the reminder, I'll have a look soon.
> 

Thanks. Just to be clear, I saw no output from trace_pipe. The separate
.../tracing/trace file is where I observed the wonky event formatting.

Brian


      reply	other threads:[~2022-12-14 17:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 19:20 [BUG] trace_printk() broken? Brian Foster
2022-12-13 23:32 ` Kent Overstreet
2022-12-14 17:46   ` Brian Foster [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=Y5oME9YVbg9Me2An@bfoster \
    --to=bfoster@redhat.com \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-bcachefs@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.