mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***
@ 2016-08-29  6:55 Binoy Jayan
  2016-08-29  6:55 ` [PATCH v3 1/3] tracing: Deference pointers without RCU checks Binoy Jayan
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Binoy Jayan @ 2016-08-29  6:55 UTC (permalink / raw)
  To: Steven Rostedt (Red Hat)
  Cc: Ingo Molnar, Daniel Wagner, Arnd Bergmann, linaro-kernel,
	Carsten Emde, linux-kernel, Masami, Binoy Jayan

Hi,

Thank you Steven and Daniel for reviewing v1 and providing suggestions.
These set of patches [v3] capture latency events caused by interrupts and
premption disabled in kernel. The patches are based on the hist trigger
feature developed by Tom Zanussi.

v2: https://lkml.org/lkml/2016/8/24/296

Mount Debugfs

mount -t debugfs nodev /sys/kernel/debug

Examples of triggers:
echo 'hist:key=latency.log2:val=hitcount:sort=latency' > /sys/kernel/debug/tracing/events/latency/latency_preempt/trigger
echo 'hist:key=cpu,latency:val=hitcount:sort=latency if cpu==1' > /sys/kernel/debug/tracing/events/latency/latency_preempt/trigger
echo 'hist:key=ltype,cpu:val=latency:sort=ltype,cpu if ltype==0' > /sys/kernel/debug/tracing/events/latency/latency_preempt/trigger

Histogram output:
cat /sys/kernel/debug/tracing/events/latency/latency_preempt/hist

Changes from v2 as per comments from Daniel
  - Use single tracepoint for irq/preempt/critical timings by introducing
    a trace type field to differentiate trace type in the same tracepoint.
    The suspicious RCU usage error was fixed and made part of Daniel's bugfix.

TODO:
1. perf interface. Not sure if this is needed
2. Latency histograms - process wakeup latency

Binoy

Binoy Jayan (2):
  tracing: Add trace_irqsoff tracepoints
  tracing: Histogram for missed timer offsets

Daniel Wagner (1):
  tracing: Deference pointers without RCU checks

 include/linux/hrtimer.h             |  3 ++
 include/linux/rculist.h             | 36 ++++++++++++++++++++
 include/linux/tracepoint.h          |  4 +--
 include/trace/events/latency.h      | 68 +++++++++++++++++++++++++++++++++++++
 kernel/time/hrtimer.c               | 39 +++++++++++++++++++++
 kernel/trace/trace_events_filter.c  |  4 +--
 kernel/trace/trace_events_trigger.c |  6 ++--
 kernel/trace/trace_irqsoff.c        | 45 +++++++++++++++++++++++-
 8 files changed, 197 insertions(+), 8 deletions(-)
 create mode 100644 include/trace/events/latency.h

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2016-08-31  6:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29  6:55 [PATCH v3 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF *** Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 1/3] tracing: Deference pointers without RCU checks Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 2/3] tracing: Add trace_irqsoff tracepoints Binoy Jayan
2016-08-29  9:43   ` Daniel Wagner
2016-08-30  9:41     ` Binoy Jayan
2016-08-30 13:52       ` Steven Rostedt
2016-08-30 14:01         ` Daniel Wagner
2016-08-30 14:20           ` Daniel Wagner
2016-08-30 15:02             ` Daniel Wagner
2016-08-30 21:06               ` Steven Rostedt
2016-08-31  6:05               ` Binoy Jayan
2016-08-29  6:55 ` [PATCH v3 3/3] tracing: Histogram for missed timer offsets Binoy Jayan

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®