Tests: `gen-ust-nevents`: add syncpoints
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 5 May 2020 16:19:13 +0000 (12:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 19 May 2020 19:28:01 +0000 (15:28 -0400)
commit22bf3163607ac1501b3a350c87fb0a81736c183f
tree69c33907f8e4f992e4da3c98c7421bc0f22810bc
parentc8604602da17624f9c6b60ccdb19a4c1d4062c8d
Tests: `gen-ust-nevents`: add syncpoints

Adds two sync points:
  `--sync-in-main`: create a file when `gen-ust-nevents` when app is in
  main,
  `--sync-before-first-event`: wait on a file before starting to
  generate any events.

Those two sync points allow for tests to do work when the testapp has
reached main BUT before any events are generated.

This is useful to perform actions on a UST channel once tracing has
started and is active on a particular app.

For example, we want to test a scenario where events are enabled once an
app is already generating other events.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Id501c8b373e1a9b43aad6caef11672fe6c30a55a
tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
This page took 0.02554 seconds and 4 git commands to generate.