[PATCH v8 0/4] Some new features for the preempt/irqsoff tracers
From: Viktor Rosendahl (BMW)
Date: Tue Oct 08 2019 - 18:08:34 EST
Hello all,
I have retained the fourth patch, although it was suggested that is becoming
obsolete soon. I have retained it only because I do not know the status of
the code that will make it obsolete. It's the last patch of the series and
if there indeed is some code that will remove the latency issues from the
printk code, then of course it makes sense to drop it. The first three patches
will work without it.
Changes in v8:
- [PATCH 1/4]:
* Moved a forward declaration in order to make code a bit more robust.
* Converted a macro NOP to a static function so that the type is checked.
- [PATCH 2/4]:
* No change.
- [PATCH 3/4]:
* No change
- [PACTH 4/4]:
* Added a comment to explain an optimization in console_tracing_disabled().
This series is meant to address two issues with the latency tracing.
The first three patches provide a method to trace latencies that always
occurs very close to each other and to differentiate between them, in spite
of the fact that the latency tracers work in overwrite mode.
[PATCH 1/4] This implement fs notification for tracing_max_latency. It
makes it possible for userspace to detect when a new latency has been
detected.
[PATCH 2/4] This extends the preemptirq_delay_test module so that it can be
used to generate a burst of closely occurring latencies.
[PATCH 3/4] This adds a user space program to the tools directory that
utilizes the fs notification feature and a randomized algorithm to print out
any of the latencies in a burst with approximately equal probability.
The last patch is not directly connected but earlier it didn't apply
cleanly on its own. However, now it does, so in principle it could be
applied separately from the others.
[PATCH 4/4] This adds the option console-latency to the trace options. This
makes it possible to enable tracing of console latencies.
best regards,
Viktor
Viktor Rosendahl (BMW) (4):
ftrace: Implement fs notification for tracing_max_latency
preemptirq_delay_test: Add the burst feature and a sysfs trigger
Add the latency-collector to tools
ftrace: Add an option for tracing console latencies
include/linux/irqflags.h | 22 +
kernel/printk/printk.c | 6 +-
kernel/trace/Kconfig | 6 +-
kernel/trace/preemptirq_delay_test.c | 144 ++-
kernel/trace/trace.c | 75 +-
kernel/trace/trace.h | 19 +
kernel/trace/trace_hwlat.c | 4 +-
kernel/trace/trace_irqsoff.c | 18 +
tools/Makefile | 14 +-
tools/trace/Makefile | 20 +
tools/trace/latency-collector.c | 1212 ++++++++++++++++++++++++++
11 files changed, 1507 insertions(+), 33 deletions(-)
create mode 100644 tools/trace/Makefile
create mode 100644 tools/trace/latency-collector.c
--
2.17.1