[PATCH] tracing/timerlat: Check tlat_var for NULL in timerlat_fd_release

2024-08-20 Thread tglozar
From: Tomas Glozar When running timerlat with a userspace workload (NO_OSNOISE_WORKLOAD), NULL pointer dereference can be triggered by sending consequent SIGINT and SIGTERM signals to the workload process. That then causes timerlat_fd_release to be called twice in a row, and the second time, hrti

[PATCH v3 6/6] rtla: Documentation: Mention --deepest-idle-state

2024-08-15 Thread tglozar
From: Tomas Glozar Add --deepest-idle-state to manpage and mention libcpupower dependency in README.txt. Signed-off-by: Tomas Glozar --- Documentation/tools/rtla/common_timerlat_options.rst | 8 tools/tracing/rtla/README.txt| 4 2 files changed, 12 inserti

[PATCH v3 5/6] rtla/timerlat: Add --deepest-idle-state for hist

2024-08-15 Thread tglozar
From: Tomas Glozar Support limiting deepest idle state also for timerlat-hist. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_hist.c | 42 +- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/t

[PATCH v3 3/6] rtla/utils: Add idle state disabling via libcpupower

2024-08-15 Thread tglozar
From: Tomas Glozar Add functions to utils.c to disable idle states through functions of libcpupower. This will serve as the basis for disabling idle states per cpu when running timerlat. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/utils.c | 150 + too

[PATCH v3 4/6] rtla/timerlat: Add --deepest-idle-state for top

2024-08-15 Thread tglozar
From: Tomas Glozar Add option to limit deepest idle state on CPUs where timerlat is running for the duration of the workload. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_top.c | 42 ++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/to

[PATCH v3 2/6] rtla: Add optional dependency on libcpupower

2024-08-15 Thread tglozar
From: Tomas Glozar If libcpupower is present, set HAVE_LIBCPUPOWER_SUPPORT macro to allow features depending on libcpupower in rtla. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/Makefile| 2 ++ tools/tracing/rtla/Makefile.config | 10 ++ 2 files changed, 12 insertions(+)

[PATCH v3 1/6] tools/build: Add libcpupower dependency detection

2024-08-15 Thread tglozar
From: Tomas Glozar Add the ability to detect the presence of libcpupower on a system to the Makefiles in tools/build. Signed-off-by: Tomas Glozar --- tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 2 files changed, 5 insertions(+) diff --git a/tools/build/Makefile.f

[PATCH v3 0/6] rtla: Support idle state disabling via libcpupower in timerlat

2024-08-15 Thread tglozar
From: Tomas Glozar rtla-timerlat allows reducing latency on wake up from idle by setting /dev/cpu_dma_latency during the timerlat measurement. This has an effect on the idle states of all CPUs, including those which are not used by timerlat. Add option --deepest-idle-state that allows limiting

[PATCH v2 5/6] rtla/timerlat: Add --deepest-idle-state for hist

2024-07-31 Thread tglozar
From: Tomas Glozar Support limiting deepest idle state also for timerlat-hist. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_hist.c | 46 +- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/t

[PATCH v2 6/6] rtla: Documentation: Mention --deepest-idle-state

2024-07-31 Thread tglozar
From: Tomas Glozar Add --deepest-idle-state to manpage and mention libcpupower dependency in README.txt. Signed-off-by: Tomas Glozar --- Documentation/tools/rtla/common_timerlat_options.rst | 8 tools/tracing/rtla/README.txt| 4 2 files changed, 12 inserti

[PATCH v2 3/6] rtla/utils: Add idle state disabling via libcpupower

2024-07-31 Thread tglozar
From: Tomas Glozar Add functions to utils.c to disable idle states through functions of libcpupower. This will serve as the basis for disabling idle states per cpu when running timerlat. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/utils.c | 140 + too

[PATCH v2 4/6] rtla/timerlat: Add --deepest-idle-state for top

2024-07-31 Thread tglozar
From: Tomas Glozar Add option to limit deepest idle state on CPUs where timerlat is running for the duration of the workload. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_top.c | 46 ++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/to

[PATCH v2 2/6] rtla: Add optional dependency on libcpupower

2024-07-31 Thread tglozar
From: Tomas Glozar If libcpupower is present, set HAVE_LIBCPUPOWER_SUPPORT macro to allow features depending on libcpupower in rtla. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/Makefile| 2 ++ tools/tracing/rtla/Makefile.config | 10 ++ 2 files changed, 12 insertions(+)

[PATCH v2 1/6] tools/build: Add libcpupower dependency detection

2024-07-31 Thread tglozar
From: Tomas Glozar Add the ability to detect the presence of libcpupower on a system to the Makefiles in tools/build. Signed-off-by: Tomas Glozar --- tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 2 files changed, 5 insertions(+) diff --git a/tools/build/Makefile.f

[PATCH v2 0/6] rtla: Support idle state disabling via libcpupower in timerlat

2024-07-31 Thread tglozar
From: Tomas Glozar rtla-timerlat allows reducing latency on wake up from idle by setting /dev/cpu_dma_latency during the timerlat measurement. This has an effect on the idle states of all CPUs, including those which are not used by timerlat. Add option --deepest-idle-state that allows limiting t

[PATCH 5/5] rtla: Documentation: Add --disable-idle-states

2024-06-12 Thread tglozar
From: Tomas Glozar Add --disable-idle-states to manpage and mention libcpupower dependency in README.txt. Signed-off-by: Tomas Glozar --- Documentation/tools/rtla/common_timerlat_options.rst | 6 ++ tools/tracing/rtla/README.txt| 4 2 files changed, 10 insertio

[PATCH 4/5] rtla/timerlat: Add --disable-idle-states for hist

2024-06-12 Thread tglozar
From: Tomas Glozar Support disabling idle states also for timerlat-hist. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_hist.c | 35 +- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing

[PATCH 3/5] rtla/timerlat: Add --disable-idle-states for top

2024-06-12 Thread tglozar
From: Tomas Glozar Add option to disable idle states on CPUs where timerlat is running for the duration of the workload. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/timerlat_top.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/tools/t

[PATCH 2/5] rtla/utils: Add idle state disabling via libcpupower

2024-06-12 Thread tglozar
From: Tomas Glozar Add functions to utils.c to disable idle states through functions of libcpupower. This will serve as the basis for disabling idle states per cpu when running timerlat. Signed-off-by: Tomas Glozar --- tools/tracing/rtla/src/utils.c | 133 + too

[PATCH 1/5] rtla: Add dependency on libcpupower

2024-06-12 Thread tglozar
From: Tomas Glozar Add a test for libcpupower into feature tests and use it to add a dependency on libcpupower to rtla. Signed-off-by: Tomas Glozar --- tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 tools/build/feature/test-libcpupower.c | 8

[PATCH 0/5] rtla: Support idle state disabling via libcpupower in timerlat

2024-06-12 Thread tglozar
From: Tomas Glozar rtla-timerlat allows reducing latency on wake up from idle by setting /dev/cpu_dma_latency during the timerlat measurement. This has an effect on the idle states of all CPUs, including those which are not used by timerlat. Add option --disable-idle-states that disables all idl