Repository navigation
Commit ff89510
committed
tracing: Save off entry when peeking at next entry
In order to have the iterator read the buffer even when it's still updating,
it requires that the ring buffer iterator saves each event in a separate
location outside the ring buffer such that its use is immutable.
There's one use case that saves off the event returned from the ring buffer
interator and calls it again to look at the next event, before going back to
use the first event. As the ring buffer iterator will only have a single
copy, this use case will no longer be supported.
Instead, have the one use case create its own buffer to store the first
event when looking at the next event. This way, when looking at the first
event again, it wont be corrupted by the second read.
Link: http://lkml.kernel.org/r/20200317213415.722539921@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent 8c77f0b commit ff89510
3 files changed
Lines changed: 47 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3466 | 3466 | | |
3467 | 3467 | | |
3468 | 3468 | | |
3469 | | - | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
3470 | 3494 | | |
3471 | 3495 | | |
3472 | 3496 | | |
| |||
4197 | 4221 | | |
4198 | 4222 | | |
4199 | 4223 | | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
4200 | 4236 | | |
4201 | 4237 | | |
4202 | 4238 | | |
| |||
4269 | 4305 | | |
4270 | 4306 | | |
4271 | 4307 | | |
| 4308 | + | |
4272 | 4309 | | |
4273 | 4310 | | |
4274 | 4311 | | |
| |||
4344 | 4381 | | |
4345 | 4382 | | |
4346 | 4383 | | |
| 4384 | + | |
4347 | 4385 | | |
4348 | 4386 | | |
4349 | 4387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
620 | 621 | | |
621 | | - | |
622 | | - | |
623 | 622 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | 623 | | |
| 624 | + | |
629 | 625 | | |
630 | | - | |
631 | | - | |
632 | | - | |
| 626 | + | |
633 | 627 | | |
634 | 628 | | |
635 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
636 | 633 | | |
637 | 634 | | |
638 | 635 | | |
| |||
0 commit comments