tracectl cleanup v3
[ust.git] / libust / tracercore.c
index 51f9a70877b07143692501b90cc01053a5867cf2..bbc869133b52a98878f2c3ec4a6aad7fbb96242e 100644 (file)
@@ -18,7 +18,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <ust/kernelcompat.h>
 #include "tracercore.h"
 
 /* Traces structures */
@@ -32,17 +31,17 @@ static DEFINE_MUTEX(ltt_traces_mutex);
 
 void ltt_lock_traces(void)
 {
-       mutex_lock(&ltt_traces_mutex);
+       pthread_mutex_lock(&ltt_traces_mutex);
 }
 
 void ltt_unlock_traces(void)
 {
-       mutex_unlock(&ltt_traces_mutex);
+       pthread_mutex_unlock(&ltt_traces_mutex);
 }
 
 //ust// DEFINE_PER_CPU(unsigned int, ltt_nesting);
 //ust// EXPORT_PER_CPU_SYMBOL(ltt_nesting);
-unsigned int ltt_nesting;
+__thread int ltt_nesting;
 
 int ltt_run_filter_default(void *trace, uint16_t eID)
 {
This page took 0.022245 seconds and 4 git commands to generate.