Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-perf-counters.c
index 2db11436a9ad8fa320f7092d9420e21972dc2ad6..082d4240102b9e5c5826952b443a1e5d3b07956b 100644 (file)
@@ -87,9 +87,10 @@ static DEFINE_URCU_TLS(int, ust_perf_mutex_nest);
 /*
  * Force a read (imply TLS allocation for dlopen) of TLS variables.
  */
-void lttng_ust_perf_counter_alloc_tls(void)
+void lttng_ust_perf_counter_init_thread(int flags)
 {
-       asm volatile ("" : : "m" (URCU_TLS(ust_perf_mutex_nest)));
+       __asm__ __volatile__ ("" : : "m" (URCU_TLS(ust_perf_mutex_nest)));
+       (void)flags;
 }
 
 void lttng_perf_lock(void)
@@ -181,7 +182,7 @@ uint64_t rdpmc(unsigned int counter)
 {
        unsigned int low, high;
 
-       asm volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (counter));
+       __asm__ __volatile__("rdpmc" : "=a" (low), "=d" (high) : "c" (counter));
 
        return low | ((uint64_t) high) << 32;
 }
This page took 0.024198 seconds and 4 git commands to generate.