aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorVincent Mailhol <[email protected]>2021-12-07 21:15:29 +0900
committerMarc Kleine-Budde <[email protected]>2022-01-05 12:09:05 +0100
commitf68eafeb9759717227cc4cdda9d47c523709c29f (patch)
tree8e23e66fe02c46e03d8d16411fd768294da8766e /tools/perf/scripts/python/event_analyzing_sample.py
parent0b0ce2c67795672115ac6ca28351a78799cd114b (diff)
can: do not copy the payload of RTR frames
The actual payload length of the CAN Remote Transmission Request (RTR) frames is always 0, i.e. no payload is transmitted on the wire. However, those RTR frames still use the DLC to indicate the length of the requested frame. For this reason, it is incorrect to copy the payload of RTR frames (the payload buffer would only contain garbage data). This patch encapsulates the payload copy in a check toward the RTR flag. Link: https://lore.kernel.org/all/[email protected] Cc: Yasushi SHOJI <[email protected]> Tested-by: Yasushi SHOJI <[email protected]> Signed-off-by: Vincent Mailhol <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions