lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6iu2f3qpxuqsjq4vxygokmmppiuwj32kkxiv57ir524h2xgsxp@wmf5d4vckgvl>
Date: Fri, 17 Oct 2025 08:33:31 -0300
From: Wander Lairson Costa <wander@...hat.com>
To: Tomas Glozar <tglozar@...hat.com>
Cc: Steven Rostedt <rostedt@...dmis.org>, 
	LKML <linux-kernel@...r.kernel.org>, Linux Trace Kernel <linux-trace-kernel@...r.kernel.org>, 
	John Kacur <jkacur@...hat.com>, Luis Goncalves <lgoncalv@...hat.com>, 
	Costa Shulyupin <costa.shul@...hat.com>, Crystal Wood <crwood@...hat.com>, stable@...r.kernel.org
Subject: Re: [PATCH] rtla/timerlat_bpf: Stop tracing on user latency

On Mon, Oct 06, 2025 at 04:31:00PM +0200, Tomas Glozar wrote:
> rtla-timerlat allows a *thread* latency threshold to be set via the
> -T/--thread option. However, the timerlat tracer calls this *total*
> latency (stop_tracing_total_us), and stops tracing also when the
> return-to-user latency is over the threshold.
> 
> Change the behavior of the timerlat BPF program to reflect what the
> timerlat tracer is doing, to avoid discrepancy between stopping
> collecting data in the BPF program and stopping tracing in the timerlat
> tracer.
> 
> Cc: stable@...r.kernel.org
> Fixes: e34293ddcebd ("rtla/timerlat: Add BPF skeleton to collect samples")
> Signed-off-by: Tomas Glozar <tglozar@...hat.com>
> ---
>  tools/tracing/rtla/src/timerlat.bpf.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tools/tracing/rtla/src/timerlat.bpf.c b/tools/tracing/rtla/src/timerlat.bpf.c
> index 084cd10c21fc..e2265b5d6491 100644
> --- a/tools/tracing/rtla/src/timerlat.bpf.c
> +++ b/tools/tracing/rtla/src/timerlat.bpf.c
> @@ -148,6 +148,9 @@ int handle_timerlat_sample(struct trace_event_raw_timerlat_sample *tp_args)
>  	} else {
>  		update_main_hist(&hist_user, bucket);
>  		update_summary(&summary_user, latency, bucket);
> +
> +		if (thread_threshold != 0 && latency_us >= thread_threshold)
> +			set_stop_tracing();
>  	}
>  
>  	return 0;
> -- 
> 2.51.0
> 

Reviewed-by: Wander Lairson Costa <wander@...hat.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ