From 652e2c571f5a13d1008f930869edcffc7c014e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Wed, 30 Aug 2023 09:40:09 +0300 Subject: [PATCH] CTF: Fix channel naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was erroniously removed in a previous change. Pick-to: 6.5 Change-Id: Ia62327bea7e3d190503a0eb05217c0f780f4fe9a Reviewed-by: Antti Määttä (cherry picked from commit 720bb62f5c24ddb06f2cb4252c513c9d5b0e9639) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/tracing/qctflib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp index f57f1cf71f2..97bf1e3a898 100644 --- a/src/plugins/tracing/qctflib.cpp +++ b/src/plugins/tracing/qctflib.cpp @@ -301,6 +301,7 @@ void QCtfLibImpl::doTracepoint(const QCtfTracePointEvent &point, const QByteArra if (ch.channelName[0] == 0) { m_threadIndices.insert(thread, m_threadIndices.size()); + sprintf(ch.channelName, "%s/channel_%d", qPrintable(m_location), m_threadIndices[thread]); ch.minTimestamp = ch.maxTimestamp = timestamp; ch.thread = thread; ch.threadIndex = m_threadIndices[thread];