Re: [PATCH 5/5] rtla/timerlat_top: Abort event processing on second signal

From: Steven Rostedt
Date: Thu Jan 16 2025 - 19:57:42 EST


On Thu, 16 Jan 2025 15:49:31 +0100
Tomas Glozar <tglozar@xxxxxxxxxx> wrote:

> Apply the changes from the previous patch also to timerlat-top.
>

Same here. I replaced this with:

rtla/timerlat_top: Abort event processing on second signal

If either SIGINT is received twice, or after a SIGALRM (that is, after
timerlat was supposed to stop), abort processing events currently left
in the tracefs buffer and exit immediately.

This allows the user to exit rtla without waiting for processing all
events, should that take longer than wanted, at the cost of not
processing all samples.

-- Steve