Skip to content

Some new features for the preempt/irqsoff tracers

Viktor Rosendahl (BMW) lkml 9 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest4 patches 0 repliesNew
  2. v94 patches 3 repliesSuperseded
  3. v84 patches 5 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v74 patches9 repliesSuperseded
v64 patches4 repliesSuperseded
v54 patches13 repliesSuperseded
v44 patches6 repliesSuperseded
v34 patches2 repliesSuperseded
v24 patches9 repliesSuperseded

Changes in v10 from the cover letter

- [PATCH 1/4]:
* Changed the #if statements to not depend on CONFIG_HWLAT_TRACER
* Changed latency_fsnotify() to a static and removed the declaration from kernel/trace/trace.h.

- [PATCH 2/4]:
* No change.

- [PATCH 3/4]:
* No change.

- [PACTH 4/4]:
* No change.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ftrace: Implement fs notification for tracing_max_latencykernel/trace/trace.c kernel/trace/trace.h+78 -20 replies
2/4preemptirq_delay_test: Add the burst feature and a sysfs triggerkernel/trace/Kconfig kernel/trace/preemptirq_delay_test.c+128 -220 replies
3/4Add the latency-collector to toolstools/Makefile tools/trace/Makefile tools/trace/latency-collector.c+1240 -60 replies
4/4ftrace: Add an option for tracing console latenciesDocumentation/admin-guide/kernel-parameters.txt include/linux/irqflags.h kernel/printk/printk.c +1 more+62 -20 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJoel Fernandes (Google)
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/4] Some new features for the preempt/irqsoff tracers

Hello all,

Changes in v10:

- [PATCH 1/4]:
* Changed the #if statements to not depend on CONFIG_HWLAT_TRACER
* Changed latency_fsnotify() to a static and removed the declaration from kernel/trace/trace.h.

- [PATCH 2/4]:
* No change.

- [PATCH 3/4]:
* No change.

- [PACTH 4/4]:
* No change.

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 trace_console_latency=1 to the kernel parameters. 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

 .../admin-guide/kernel-parameters.txt         |    4 +
 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                          |   73 +-
 kernel/trace/trace.h                          |    7 +
 kernel/trace/trace_irqsoff.c                  |   32 +
 tools/Makefile                                |   14 +-
 tools/trace/Makefile                          |   20 +
 tools/trace/latency-collector.c               | 1212 +++++++++++++++++
 11 files changed, 1508 insertions(+), 32 deletions(-)
 create mode 100644 tools/trace/Makefile
 create mode 100644 tools/trace/latency-collector.c
Signature · 1 line
2.17.1