Commit 2b088db
i#7470: Fix order of unreading split trace entries (#7469)
Fixes the order in which split trace entries such as
TRACE_MARKER_TYPE_SPLIT_VALUE are unread in unread_last_entry.
TRACE_MARKER_TYPE_SPLIT_VALUE must be at the front of the pre_read deque
so that it is returned _before_ the actual marker, in the same order it
is read from the raw trace.
Adds a raw2trace_unit_test that fails with "SPLIT_VALUE marker is not
adjacent to 2nd entry" due to the previously incorrect order of the
split_value marker wrt the actual marker in the deque. The error was
demonstrated using a large enough kernel_event marker value. This was
not seen on a real trace probably because kernel_event marker values do
not need the additional marker usually.
There is an additional bug where raw2trace does not fully take into
account the fact that some markers may be preceded by the
TRACE_MARKER_TYPE_SPLIT_VALUE marker. Added a TODO for now.
Issue: #74701 parent c689911 commit 2b088db
2 files changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
| 451 | + | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
| 457 | + | |
| 458 | + | |
452 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
453 | 465 | | |
454 | 466 | | |
455 | 467 | | |
| |||
461 | 473 | | |
462 | 474 | | |
463 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
464 | 483 | | |
465 | 484 | | |
466 | 485 | | |
| |||
493 | 512 | | |
494 | 513 | | |
495 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
496 | 532 | | |
497 | 533 | | |
498 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2794 | 2794 | | |
2795 | 2795 | | |
2796 | 2796 | | |
| 2797 | + | |
2797 | 2798 | | |
2798 | 2799 | | |
2799 | 2800 | | |
2800 | 2801 | | |
2801 | 2802 | | |
2802 | | - | |
2803 | 2803 | | |
2804 | 2804 | | |
2805 | 2805 | | |
| |||
0 commit comments