Skip to content

Commit b9f451a

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
tracing/timerlat: Notify new max thread latency
timerlat is not reporting a new tracing_max_latency for the thread latency. The reason is that it is not calling notify_new_max_latency() function after the new thread latency is sampled. Call notify_new_max_latency() after computing the thread latency. Link: https://lkml.kernel.org/r/16e18d61d69073d0192ace07bf61e405cca96e9c.1680104184.git.bristot@kernel.org Cc: [email protected] Fixes: dae1813 ("tracing/osnoise: Support a list of trace_array *tr") Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent ea65b41 commit b9f451a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/trace/trace_osnoise.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,8 @@ static int timerlat_main(void *data)
17381738

17391739
trace_timerlat_sample(&s);
17401740

1741+
notify_new_max_latency(diff);
1742+
17411743
timerlat_dump_stack(time_to_us(diff));
17421744

17431745
tlat->tracing_thread = false;

0 commit comments

Comments
 (0)