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
59145914
59155915 rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0;
59165916
5917+ buf->tr = tr;
5918+
59175919 buf->buffer = ring_buffer_alloc(size, rb_flags);
59185920 if (!buf->buffer)
59195921 return -ENOMEM;