Commit c79ee2b
perf intel-pt: Fix state setting when receiving overflow (OVF) packet
An overflow (OVF packet) is treated as an error because it represents a
loss of trace data, but there is no loss of synchronization, so the packet
state should be INTEL_PT_STATE_IN_SYNC not INTEL_PT_STATE_ERR_RESYNC.
To support that, some additional variables must be reset, and the FUP
packet that may follow OVF is treated as an FUP event.
Fixes: f4aa081 ("perf tools: Add Intel PT decoder")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v5.15+
Link: https://lore.kernel.org/r/20211210162303.2288710-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>1 parent 4c761d8 commit c79ee2b
1 file changed
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1252 | 1266 | | |
1253 | 1267 | | |
1254 | 1268 | | |
| |||
1602 | 1616 | | |
1603 | 1617 | | |
1604 | 1618 | | |
1605 | | - | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1606 | 1629 | | |
1607 | 1630 | | |
1608 | 1631 | | |
| |||
2957 | 2980 | | |
2958 | 2981 | | |
2959 | 2982 | | |
| 2983 | + | |
2960 | 2984 | | |
2961 | 2985 | | |
2962 | 2986 | | |
| |||
3462 | 3486 | | |
3463 | 3487 | | |
3464 | 3488 | | |
| 3489 | + | |
3465 | 3490 | | |
3466 | 3491 | | |
3467 | 3492 | | |
3468 | | - | |
3469 | 3493 | | |
3470 | 3494 | | |
3471 | 3495 | | |
| |||
3480 | 3504 | | |
3481 | 3505 | | |
3482 | 3506 | | |
3483 | | - | |
3484 | 3507 | | |
3485 | 3508 | | |
3486 | 3509 | | |
| |||
3699 | 3722 | | |
3700 | 3723 | | |
3701 | 3724 | | |
3702 | | - | |
| 3725 | + | |
| 3726 | + | |
3703 | 3727 | | |
3704 | 3728 | | |
3705 | 3729 | | |
| |||
0 commit comments