projects
/
deliverable
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Define max nesting count constant
[deliverable/lttng-modules.git]
/
lib
/
ringbuffer
/
frontend_api.h
diff --git
a/lib/ringbuffer/frontend_api.h
b/lib/ringbuffer/frontend_api.h
index 23118c46d98d8cbfa424131e4ca9454ab2e89254..b4a8db898d75af10d829cce5378cfb74c4a34621 100644
(file)
--- a/
lib/ringbuffer/frontend_api.h
+++ b/
lib/ringbuffer/frontend_api.h
@@
-58,7
+58,7
@@
int lib_ring_buffer_get_cpu(const struct lib_ring_buffer_config *config)
nesting = ++per_cpu(lib_ring_buffer_nesting, cpu);
barrier();
- if (unlikely(nesting >
4
)) {
+ if (unlikely(nesting >
RING_BUFFER_MAX_NESTING
)) {
WARN_ON_ONCE(1);
per_cpu(lib_ring_buffer_nesting, cpu)--;
rcu_read_unlock_sched_notrace();
This page took
0.031056 seconds
and
5
git commands to generate.