Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust / lttng-context-perf-counters.c
index 52371a0dc6eb13cb600055cf85eba36077748cf5..082d4240102b9e5c5826952b443a1e5d3b07956b 100644 (file)
@@ -89,7 +89,7 @@ static DEFINE_URCU_TLS(int, ust_perf_mutex_nest);
  */
 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;
 }
 
@@ -182,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.023725 seconds and 4 git commands to generate.