X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust%2Flttng-context-perf-counters.c;h=082d4240102b9e5c5826952b443a1e5d3b07956b;hb=742ac92a271c97c49bd79444594c0e8dfe099f9e;hp=52371a0dc6eb13cb600055cf85eba36077748cf5;hpb=4c3d9cd0b8f8c270ea61474ea75418285e6afdd7;p=lttng-ust.git diff --git a/src/lib/lttng-ust/lttng-context-perf-counters.c b/src/lib/lttng-ust/lttng-context-perf-counters.c index 52371a0d..082d4240 100644 --- a/src/lib/lttng-ust/lttng-context-perf-counters.c +++ b/src/lib/lttng-ust/lttng-context-perf-counters.c @@ -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; }