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: <20250106222444.28141b2b05cb4c7906f5e91e@kernel.org>
Date: Mon, 6 Jan 2025 22:24:44 +0900
From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
To: Shrikanth Hegde <sshegde@...ux.ibm.com>
Cc: rostedt@...dmis.org, mark.rutland@....com,
 linux-trace-kernel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ftrace: print lazy preemption model

On Fri,  3 Jan 2025 15:06:47 +0530
Shrikanth Hegde <sshegde@...ux.ibm.com> wrote:

> Print lazy preemption model in ftrace header when latency-format=1.
> 
> cat /sys/kernel/debug/sched/preempt 
> none voluntary full (lazy)
> 
> Without patch:
> latency: 0 us, #232946/232946, CPU#40 | (M:unknown VP:0, KP:0, SP:0 HP:0 #P:80)
> With Patch:
> latency: 0 us, #1897938/25566788, CPU#16 | (M:lazy VP:0, KP:0, SP:0 HP:0 #P:80)
> 

Looks good to me.

Acked-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>

Thanks,


> Signed-off-by: Shrikanth Hegde <sshegde@...ux.ibm.com>
> ---
>  kernel/trace/trace.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> index f8aebcb01e62..b6e40e8791fa 100644
> --- a/kernel/trace/trace.c
> +++ b/kernel/trace/trace.c
> @@ -4122,6 +4122,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
>  		   preempt_model_none()      ? "server" :
>  		   preempt_model_voluntary() ? "desktop" :
>  		   preempt_model_full()      ? "preempt" :
> +		   preempt_model_lazy()	     ? "lazy"    :
>  		   preempt_model_rt()        ? "preempt_rt" :
>  		   "unknown",
>  		   /* These are reserved for later use */
> -- 
> 2.39.3
> 


-- 
Masami Hiramatsu (Google) <mhiramat@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ