From a79bfad08e4e9a73a632fda0b6e659b29e68ed22 Mon Sep 17 00:00:00 2001
From: Martin Stein <martin.stein@genode-labs.com>
Date: Tue, 4 Dec 2018 16:46:38 +0100
Subject: [PATCH] base-linux: init trace control

---
 repos/base-linux/src/lib/base/thread_linux.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/repos/base-linux/src/lib/base/thread_linux.cc b/repos/base-linux/src/lib/base/thread_linux.cc
index 950848c7eb..2028969807 100644
--- a/repos/base-linux/src/lib/base/thread_linux.cc
+++ b/repos/base-linux/src/lib/base/thread_linux.cc
@@ -142,6 +142,8 @@ void Thread::start()
 	static Lock lock;
 	Lock::Guard guard(lock);
 
+	_init_cpu_session_and_trace_control();
+
 	/*
 	 * The first time we enter this code path, the 'start' function is
 	 * called by the main thread as there cannot exist other threads