Fix: ust-fork: reverse order of "after" callbacks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Oct 2022 17:05:01 +0000 (13:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 5 Oct 2022 15:07:26 +0000 (11:07 -0400)
commit0cab898d2e887eb164d4559efd82ab879e0c4062
treef536853024887fe3a27c53df024a1a764d0bf825
parent5f748425825e61bb96d55a07bafbd3f3afe4e501
Fix: ust-fork: reverse order of "after" callbacks

The "after" callbacks restore the pthread cancelstate to the prior
state, and warn on the application console when LTTNG_UST_DEBUG=1 is set
if the cancelstate restored does not match the cancelstate saved.

It is therefore important that we keep the following order:

  - begin callback (2.13)
  - begin callback (2.12)
    ...
  - after callback (2.12)
  - after callback (2.13)

to preserve the correct nesting of saved/restored pthread cancelstate.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Id95792654d514e0dcd09c00ff5dc0d220fb27f87
src/lib/lttng-ust-fork/ustfork.c
This page took 0.025671 seconds and 5 git commands to generate.