Skip to content

rtla/timerlat: Set OSNOISE_WORKLOAD for kernel threads

Tomas Glozar linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rtla/osnoise: Distinguish missing workload optiontools/tracing/rtla/src/osnoise.c+1 -10 replies
2/3rtla/timerlat_hist: Set OSNOISE_WORKLOAD for kernel threadstools/tracing/rtla/src/timerlat_hist.c+9 -60 replies
3/3rtla/timerlat_top: Set OSNOISE_WORKLOAD for kernel threadstools/tracing/rtla/src/timerlat_top.c+9 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] rtla/timerlat: Set OSNOISE_WORKLOAD for kernel threads

The patchset makes both rtla-timerlat-hist and rtla-timerlat-top set OSNOISE_WORKLOAD to the proper value ("on" when running with -k, "off" when running with -u) every time the option is available instead of setting it only when running with -u.

This prevents rtla timerlat -k from giving no results when NO_OSNOISE_WORKLOAD is set, either manually or by an abnormally exited earlier run of rtla timerlat -u.

osnoise_set_workload is made to distinguish between the option missing altogether and it failing to be set. In the first case, rtla-timerlat will ignore setting the option to preserve compatibility of kernel-thread mode on older kernels without the OSNOISE_WORKLOAD option.

Tomas Glozar (3):
rtla/osnoise: Distinguish missing workload option rtla/timerlat_hist: Set OSNOISE_WORKLOAD for kernel threads rtla/timerlat_top: Set OSNOISE_WORKLOAD for kernel threads

 tools/tracing/rtla/src/osnoise.c       |  2 +-
 tools/tracing/rtla/src/timerlat_hist.c | 15 +++++++++------
 tools/tracing/rtla/src/timerlat_top.c  | 15 +++++++++------
 3 files changed, 19 insertions(+), 13 deletions(-)
Signature · 1 line
2.47.1