Function test_tracetools::mark_trace_test_process

Function Documentation

void test_tracetools::mark_trace_test_process()

Mark process to link it to a trace test.

This should be called once by each test application (process) to mark the process so that it can be linked to the trace test that spawned it.

The process responsible for spawning the current process is responsible for setting the TRACETOOLS_TEST_TRACE_TEST_ID environment variable to a unique value.

If the TRACETOOLS_TEST_TRACE_TEST_ID environment variable is set and not empty, this marks the current process by triggering an lttng_ust_tracef:event trace event with a msg field value equal to: "TRACETOOLS_TEST_TRACE_TEST_ID=<value of TRACETOOLS_TEST_TRACE_TEST_ID>".

See also

tracetools_test