Skip to content

tracing/osnoise: Track IPIs

Valentin Schneider linux-trace-kernel lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest8 patches 0 repliesNew
  2. v46 patches 2 repliesSuperseded
  3. v36 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC4 patches12 repliesSuperseded
v1 RFC2 patches7 repliesSuperseded

Changes in v5 from the cover letter

++++++++

o Made events processing follow user-specified order

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8rtla/osnoise: Add IPI tracking cmdline optionDocumentation/tools/rtla/rtla-osnoise-top.rst tools/tracing/rtla/src/cli.c tools/tracing/rtla/src/cli_p.h +1 more+9 -00 replies
2/8rtla/osnoise: Record IPI count in osnoise toptools/tracing/rtla/src/osnoise_top.c+115 -10 replies
3/8rtla/osnoise: Leverage IPI event filters when tracing a subset of CPUstools/tracing/rtla/src/osnoise_top.c+33 -50 replies
4/8rtla/osnoise: Allow IPI filters to gracefully failtools/tracing/rtla/src/osnoise_top.c+45 -40 replies
5/8rtla: make struct trace_events double linkedtools/tracing/rtla/src/cli_p.h tools/tracing/rtla/src/trace.h+4 -10 replies
6/8rtla: Enable and disable events in the user-defined ordertools/tracing/rtla/src/trace.c+20 -40 replies
7/8rtla: Unconditionally clean any pre-existing filters for user-provided eventsDocumentation/tools/rtla/common_options.txt tools/tracing/rtla/src/trace.c+12 -10 replies
8/8rtla/osnoise: Trace IPI events when recording a trace filetools/tracing/rtla/src/common.c tools/tracing/rtla/src/common.h tools/tracing/rtla/src/osnoise.c +2 more+80 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/8] tracing/osnoise: Track IPIs

Hi folks,

So I've seen a few times now reports of latency spikes caused by IPIs, usually because of isolation misconfiguration, but only detected at the tail of end e.g. a 24h timerlat run.

It's not because those IPIs are rare, but rather that they don't by themselves cause a monitered CPU to reach the latency threshold, it's usually a combined interference that gets us there.

I'd like to make it easier to detect such misconfigurations and thus IPIs hitting supposedly-isolated CPUs. I initially kludged a timerlat option to stop tracing as soon as an IPI was sent to a monitored CPU, regardless of the latency threshold. It sort of did the trick, but Tomáš convinced me timerlat wasn't really the place for that.

Patches are available at

https://gitlab.com/vschneid/linux.git -b mainline/tracing/osnoise-ipi-userspace/v5

Cheers,
Valentin

Revisions
=========

v4 -> v5
++++++++

o Made events processing follow user-specified order

v3 -> v4
++++++++

o Rebase onto v7.2-rc4
o Fix changelog typo

v2 -> v3
++++++++

o Dropped the short-form -i option to leave it free
o Re-arranged top header printing
o Fixed tracefs_event_file_write() return value handling

o Changed IPI filtering to allow it to gracefully fail on older kernels
o Added filter clearing for -e events to ensure a known state

v1 -> v2
++++++++

o Dropped the in-kernel osnoise_sample changes and made it all userspace

Valentin Schneider (8):
rtla/osnoise: Add IPI tracking cmdline option rtla/osnoise: Record IPI count in osnoise top rtla/osnoise: Leverage IPI event filters when tracing a subset of CPUs rtla/osnoise: Allow IPI filters to gracefully fail
rtla: make struct trace_events double linked
rtla: Enable and disable events in the user-defined order
rtla: Unconditionally clean any pre-existing filters for user-provided
events
rtla/osnoise: Trace IPI events when recording a trace file

 Documentation/tools/rtla/common_options.txt   |   9 +-
 Documentation/tools/rtla/rtla-osnoise-top.rst |   4 +
 tools/tracing/rtla/src/cli.c                  |   1 +
 tools/tracing/rtla/src/cli_p.h                |   7 +-
 tools/tracing/rtla/src/common.c               |   2 +-
 tools/tracing/rtla/src/common.h               |   3 +-
 tools/tracing/rtla/src/osnoise.c              |  72 +++++++-
 tools/tracing/rtla/src/osnoise.h              |   4 +
 tools/tracing/rtla/src/osnoise_top.c          | 155 +++++++++++++++++-
 tools/tracing/rtla/src/trace.c                |  28 +++-
 tools/tracing/rtla/src/trace.h                |   1 +
 11 files changed, 276 insertions(+), 10 deletions(-)
Signature · 1 line
2.55.0