Skip to content

Commit 02d8991

Browse files
author
Daniel Bristot de Oliveira
committed
rtla/timerlat_aa: Zero thread sum after every sample analysis
The thread thread_thread_sum accounts for thread interference during a single activation. It was not being zeroed, so it was accumulating thread interference over all activations. It was not that visible when timerlat was the highest priority. Link: https://lore.kernel.org/lkml/97bff55b0141f2d01b47d9450a5672fde147b89a.1691162043.git.bristot@kernel.org Fixes: 27e348b ("rtla/timerlat: Add auto-analysis core") Signed-off-by: Daniel Bristot de Oliveira <[email protected]>
1 parent 0bb80ec commit 02d8991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/tracing/rtla/src/timerlat_aa.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static int timerlat_aa_irq_latency(struct timerlat_aa_data *taa_data,
159159
taa_data->thread_nmi_sum = 0;
160160
taa_data->thread_irq_sum = 0;
161161
taa_data->thread_softirq_sum = 0;
162+
taa_data->thread_thread_sum = 0;
162163
taa_data->thread_blocking_duration = 0;
163164
taa_data->timer_irq_start_time = 0;
164165
taa_data->timer_irq_duration = 0;

0 commit comments

Comments
 (0)