public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v4 0/3] tracing: Add trace events for preemption and irq disable/enable.
@ 2017-09-07  0:17 Joel Fernandes
  2017-09-07  0:17 ` [PATCH RFC v4 1/3] tracing/irqsoff: Prepare to add preempt and irq trace events Joel Fernandes
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Fernandes @ 2017-09-07  0:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Joel Fernandes, Steven Rostedt, Peter Zijlstra, kernel-team

These patches add trace events support for preempt and irq disable/enable
events.

Changes since v3 (link [1]):
Previously the patch series used the terms "critical section" but Peter
suggested that this name is confusing due to ambiguity, so I dropped calling it
that in this series. See discussion in [1]. I also dropped the "preemptirq"
combined event (which behaves similar to the preemptirqsoff tracer) for now and
will keep that for a later patch once we can get this foundation series in.

Here's an example of how Android's systrace will be using it to show atomic
sections as a gantt chart: http://imgur.com/download/TZplEVp

I also added a slightly unrelated fix for a config option (patch 3/3).

[1] https://patchwork.kernel.org/patch/9936045/

Joel Fernandes (3):
  trace/irqsoff: Prepare to add preempt and irq trace events
  trace: Add support for preempt and irq enable/disable events
  ftrace: Use correct config option for preemption debug

 include/linux/ftrace.h            |   7 +-
 include/linux/irqflags.h          |   4 +-
 include/trace/events/preemptirq.h |  62 +++++++++++++
 kernel/trace/Kconfig              |   9 ++
 kernel/trace/Makefile             |   1 +
 kernel/trace/trace_irqsoff.c      | 178 +++++++++++++++++++++++++++++++-------
 6 files changed, 226 insertions(+), 35 deletions(-)
 create mode 100644 include/trace/events/preemptirq.h

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: kernel-team@android.com
-- 
2.14.1.581.gf28d330327-goog

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-10 22:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-07  0:17 [PATCH RFC v4 0/3] tracing: Add trace events for preemption and irq disable/enable Joel Fernandes
2017-09-07  0:17 ` [PATCH RFC v4 1/3] tracing/irqsoff: Prepare to add preempt and irq trace events Joel Fernandes
2017-09-10  9:06   ` Steven Rostedt
2017-09-10 22:21     ` Joel Fernandes
2017-09-07  0:17 ` [PATCH RFC v4 2/3] tracing: Add support for preempt and irq enable/disable events Joel Fernandes
2017-09-07  0:17 ` [PATCH RFC v4 3/3] ftrace: Use correct config option for preemption debug Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox