History

tracing: Have trace buffer point back to trace_array

The trace buffer has a descriptor pointer that goes back to the trace array. But it was never assigned. Luckily, nothing uses it (yet), but it will in the future. Although nothing currently uses this, if any of the new features get backported to older kernels, and because this is such a simple change, I'm marking it for stable too.

Steven Rostedt (Red Hat) committed 12 years ago

Commit dced3411 parent a4c35ed1 file · +2 −0Browse files

Unified · Split

kernel/trace/trace.c+2−0
@@ -5914,6 +5914,8 @@ allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size · 5913 unmodified lines
5914 5914
5915 rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0;5915 rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0;
5916 5916
5917 buf->tr = tr;
5918
5917 buf->buffer = ring_buffer_alloc(size, rb_flags);5919 buf->buffer = ring_buffer_alloc(size, rb_flags);
5918 if (!buf->buffer)5920 if (!buf->buffer)
5919 return -ENOMEM;5921 return -ENOMEM;