]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: make tasklet wakeup latency measurements more accurate
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Feb 2021 08:32:58 +0000 (09:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Feb 2021 08:44:16 +0000 (09:44 +0100)
commit2a54ffbf434143e6f76c426c48f752e402e7d764
tree8007ced93dca4cdaa6cbfcb8cb1355530e8e0208
parentb2285de0493713f8572e8f2df3bd26f69021479b
MINOR: task: make tasklet wakeup latency measurements more accurate

First, we don't want to measure wakeup times if the call date had not
been set before profiling was enabled at run time. And second, we may
only collect the value before clearing the TASK_IN_LIST bit, otherwise
another wakeup might happen on another thread and replace the call date
we're about to use, hence artificially lower the wakeup times.
src/task.c