projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
convert ltt_nesting to a per_thread variable, and access it with volatile access
[lttng-ust.git]
/
libust
/
buffers.h
diff --git
a/libust/buffers.h
b/libust/buffers.h
index 28faad79551ab8a0839c2be043875a7246a71cf8..db4b7089071e42358d18b4172da60ca2a6963ff6 100644
(file)
--- a/
libust/buffers.h
+++ b/
libust/buffers.h
@@
-356,7
+356,7
@@
static __inline__ int ltt_reserve_slot(struct ust_trace *trace,
* Perform retryable operations.
*/
/* FIXME: make this rellay per cpu? */
- if (unlikely(
__get_cpu_var
(ltt_nesting) > 4)) {
+ if (unlikely(
LOAD_SHARED
(ltt_nesting) > 4)) {
local_inc(&buf->events_lost);
return -EPERM;
}
This page took
0.024208 seconds
and
4
git commands to generate.