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.
Unified · Split
| @@ -5914,6 +5914,8 @@ allocate_trace_buffer(struct trace_array *tr, struct trace_buffer *buf, int size · 5913 unmodified lines | ||
| 5914 | 5914 | |
| 5915 | 5915 | rb_flags = trace_flags & TRACE_ITER_OVERWRITE ? RB_FL_OVERWRITE : 0; |
| 5916 | 5916 | |
| 5917 | + buf->tr = tr; | |
| 5918 | + | |
| 5917 | 5919 | buf->buffer = ring_buffer_alloc(size, rb_flags); |
| 5918 | 5920 | if (!buf->buffer) |
| 5919 | 5921 | return -ENOMEM; |