Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test_tracetools/src/mark_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#ifndef TRACETOOLS_DISABLED
#include <lttng/tracef.h>
#include <lttng/ust-version.h>

#include "rcpputils/env.hpp"
#endif // TRACETOOLS_DISABLED
Expand All @@ -40,7 +41,11 @@ void mark_trace_test_process()
const std::string env_var{trace_test_id_env_var};
const auto test_id = rcpputils::get_env_var(env_var.c_str());
if (!test_id.empty()) {
#if LTTNG_UST_MINOR_VERSION <= 12
_lttng_ust_tracef("%s=%s", env_var.c_str(), test_id.c_str());
#else
lttng_ust__tracef("%s=%s", env_var.c_str(), test_id.c_str());
#endif
}
#endif // TRACETOOLS_DISABLED
}
Expand Down