projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Define exclusion structure for UST ABI
[lttng-ust.git]
/
libringbuffer
/
frontend_api.h
diff --git
a/libringbuffer/frontend_api.h
b/libringbuffer/frontend_api.h
index 6a06bba2c2393ba139bc506a8f88bb4027b59ea9..a2a9af39aea777998c5d96cdde5f632f500c8cf7 100644
(file)
--- a/
libringbuffer/frontend_api.h
+++ b/
libringbuffer/frontend_api.h
@@
-55,12
+55,12
@@
int lib_ring_buffer_get_cpu(const struct lttng_ust_lib_ring_buffer_config *confi
rcu_read_lock();
cpu = lttng_ust_get_cpu();
rcu_read_lock();
cpu = lttng_ust_get_cpu();
- nesting = ++
lib_ring_buffer_nesting; /* TLS */
+ nesting = ++
URCU_TLS(lib_ring_buffer_nesting);
cmm_barrier();
if (caa_unlikely(nesting > 4)) {
WARN_ON_ONCE(1);
cmm_barrier();
if (caa_unlikely(nesting > 4)) {
WARN_ON_ONCE(1);
- lib_ring_buffer_nesting--; /* TLS */
+ URCU_TLS(lib_ring_buffer_nesting)--;
rcu_read_unlock();
return -EPERM;
} else
rcu_read_unlock();
return -EPERM;
} else
@@
-74,7
+74,7
@@
static inline
void lib_ring_buffer_put_cpu(const struct lttng_ust_lib_ring_buffer_config *config)
{
cmm_barrier();
void lib_ring_buffer_put_cpu(const struct lttng_ust_lib_ring_buffer_config *config)
{
cmm_barrier();
-
lib_ring_buffer_nesting--;
/* TLS */
+
URCU_TLS(lib_ring_buffer_nesting)--;
/* TLS */
rcu_read_unlock();
}
rcu_read_unlock();
}
This page took
0.023055 seconds
and
4
git commands to generate.