Commit 8f5c77ee authored by Danh Doan's avatar Danh Doan Committed by Vlad Zahorodnii
Browse files

ftrace: use quint32 for context counter

Some old platforms don't have atomic integer supports for 64-bit wise
integer.

As indicated in GPUVis:

	// Erase all knowledge of this ctx so it can be reused

We can reuse numbers after end_ctx, so with we should be fine with
32-bit integer.

Let's use a 32 bit integer for context.

(cherry picked from commit 5ba32847)
parent 759a035b
......@@ -73,7 +73,7 @@ class KWIN_EXPORT FTraceDuration
public:
template<typename... Args> FTraceDuration(Args... args)
{
static QAtomicInteger<qulonglong> s_context = 0;
static QAtomicInteger<quint32> s_context = 0;
QTextStream stream(&m_message);
(stream << ... << args);
stream.flush();
......@@ -85,7 +85,7 @@ public:
private:
QByteArray m_message;
qulonglong m_context;
quint32 m_context;
};
} // namespace KWin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment