aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorSuzuki K Poulose <[email protected]>2020-12-08 11:26:49 -0700
committerGreg Kroah-Hartman <[email protected]>2020-12-08 19:57:19 +0100
commit83be0b84fe846edf0c722fefe225482d5f0d7395 (patch)
tree48ac3eb947cc6e1ad48725cfe44505072f83b3c9 /lib/mpi/mpi-cmp.c
parentee64ed8153abf6668d662ba451ecf539cad63017 (diff)
coresight: tmc-etr: Fix barrier packet insertion for perf buffer
When the ETR is used in perf mode with a larger buffer (configured via sysfs or the default size of 1M) than the perf aux buffer size, we end up inserting the barrier packet at the wrong offset, while moving the offset forward. i.e, instead of the "new moved offset", we insert it at the current hardware buffer offset. These packets will not be visible as they are never copied and could lead to corruption in the trace decoding side, as the decoder is not aware that it needs to reset the decoding. Fixes: ec13c78d7b45 ("coresight: tmc-etr: Add barrier packets when moving offset forward") Cc: Mathieu Poirier <[email protected]> Cc: [email protected] Reported-by: Al Grant <[email protected]> Tested-by: Mike Leach <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions