From: Steven Rostedt <rostedt@goodmis.org>
To: Joel Fernandes <joelaf@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
LKML <linux-kernel@vger.kernel.org>,
kernel-team@android.com, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH v7 2/2] tracing: Add support for preempt and irq enable/disable events
Date: Fri, 6 Oct 2017 09:38:43 -0400 [thread overview]
Message-ID: <20171006093843.3ef9937a@gandalf.local.home> (raw)
In-Reply-To: <CAJWu+oqb+YS+ZOnnv3+ayxoMu4FY0R0zWH3SxBWr4Pk4PsMKyw@mail.gmail.com>
On Fri, 6 Oct 2017 00:28:21 -0700
Joel Fernandes <joelaf@google.com> wrote:
> Oh ok. So I traced this down to the original patch that added
> time_hardirqs_off to lockdep. I *think* it was added just to keep the
> irqsoff tracer working while lockdep is enabled, so that both lockdep
> and the tracer would work at the same time. So I guess nobody noticed
> any issues because nobody noticed or cared to check if irqsoff tracer
> showed the same results with lockdep enabled vs disabled.
As one of the main users of preemptirqsoff tracer, I can tell you that
we didn't care ;-)
Yes, it was added to keep them both working. It's dangerous to use
CALLER_ADDR1, as lockdep can be called by the top frame, and ADDR1
would go off the stack frame and cause a fault. I just put in ADDR0
as filler as it required something to be added.
We added a stack dump on new max latencies to figure out where the
problem occurred.
-- Steve
>
> I think the correct way this should be rewritten is lockdep should use
> register_trace_* to register callbacks onto the new tracepoints I'm
> adding. I am working on a patch that does something like this and gets
> rid of the time_* functions. I will try to have an RFC out by the
> weekend if I hopefully don't hit any roadblocks.
>
> thanks!
>
> - Joel
next prev parent reply other threads:[~2017-10-06 13:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 21:22 [PATCH v7 1/2] tracing: Prepare to add preempt and irq trace events Joel Fernandes
2017-09-29 21:22 ` [PATCH v7 2/2] tracing: Add support for preempt and irq enable/disable events Joel Fernandes
2017-10-04 16:01 ` Peter Zijlstra
2017-10-04 16:43 ` Joel Fernandes
2017-10-06 8:59 ` Joel Fernandes
2017-10-05 23:28 ` Joel Fernandes
2017-10-05 23:29 ` Joel Fernandes
2017-10-06 7:07 ` Peter Zijlstra
2017-10-06 7:28 ` Joel Fernandes
2017-10-06 13:38 ` Steven Rostedt [this message]
2017-10-06 17:27 ` Joel Fernandes
2017-10-04 16:04 ` Peter Zijlstra
2017-10-04 16:31 ` Joel Fernandes
2017-10-04 16:44 ` Steven Rostedt
2017-10-04 16:56 ` Joel Fernandes
2017-10-04 17:03 ` Steven Rostedt
2017-10-04 20:13 ` Joel Fernandes
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=20171006093843.3ef9937a@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=joelaf@google.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.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