diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-27 14:27:47 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-27 14:42:36 (GMT) |
commit | 58a09ec6e3ec88c9c7e061479f1ef7fe93324a87 (patch) | |
tree | 5a9637b59aeb747978c4079823f98f02b3bf6e76 /samples/rpmsg | |
parent | 3205f8063b6cc54b20d5080fb79dfcbd9c39e93d (diff) | |
download | linux-58a09ec6e3ec88c9c7e061479f1ef7fe93324a87.tar.xz |
ring-buffer: Move recursive check to per_cpu descriptor
Instead of using a global per_cpu variable to perform the recursive
checks into the ring buffer, use the already existing per_cpu descriptor
that is part of the ring buffer itself.
Not only does this simplify the code, it also allows for one ring buffer
to be used within the guts of the use of another ring buffer. For example
trace_printk() can now be used within the ring buffer to record changes
done by an instance into the main ring buffer. The recursion checks
will prevent the trace_printk() itself from causing recursive issues
with the main ring buffer (it is just ignored), but the recursive
checks wont prevent the trace_printk() from recording other ring buffers.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'samples/rpmsg')
0 files changed, 0 insertions, 0 deletions