convert ltt_nesting to a per_thread variable, and access it with volatile access
[ust.git] / libust / tracercore.c
index 51f9a70877b07143692501b90cc01053a5867cf2..72c2887d8a1ece8b0ca479573d04b6172e4c5069 100644 (file)
@@ -42,7 +42,7 @@ void ltt_unlock_traces(void)
 
 //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.022047 seconds and 4 git commands to generate.