projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: c99: use __asm__ __volatile__
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
lttng-context-perf-counters.c
diff --git
a/src/lib/lttng-ust/lttng-context-perf-counters.c
b/src/lib/lttng-ust/lttng-context-perf-counters.c
index 52371a0dc6eb13cb600055cf85eba36077748cf5..082d4240102b9e5c5826952b443a1e5d3b07956b 100644
(file)
--- 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)
{
*/
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)flags;
}
@@
-182,7
+182,7
@@
uint64_t rdpmc(unsigned int counter)
{
unsigned int low, high;
{
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;
}
return low | ((uint64_t) high) << 32;
}
This page took
0.025487 seconds
and
4
git commands to generate.