[RFC] perf bench: Adjusting concerns around asynchronous-signal-safety?

From: Markus Elfring
Date: Mon Jul 22 2024 - 05:53:36 EST


Hello,

The functions “gettimeofday” and “timersub” are called within the signal
handler “toggle_done” so far.
https://elixir.bootlin.com/linux/v6.10/source/tools/perf/bench/epoll-ctl.c#L90

Do such implementation details trigger any programming concerns according to
asynchronous-signal-safety?
https://wiki.sei.cmu.edu/confluence/display/c/SIG30-C.+Call+only+asynchronous-safe+functions+within+signal+handlers

Regards,
Markus