summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-07-12 11:10:42 -0300
committerRay Zhang <rayz@codeaurora.org>2017-05-25 11:21:58 +0800
commit72b6c6a39fa4a96859ee2042065f4f14b5fcffe4 (patch)
tree61455d21e5ce80733052a54d0c87dfc5993ee3d9 /tools/perf/scripts/python
parent61423ca8a0913ff4dcd25ce593c5c384d66299e6 (diff)
[media] cec: split the timestamp into an rx and tx timestamp
When transmitting a message and waiting for a reply it would be good to know the time between when the message was transmitted and when the reply arrived. With only one timestamp field it was set to when the reply arrived and the original transmit time was overwritten. Just taking the timestamp in userspace right before CEC_TRANSMIT is called is not reliable, since the actual transmit can be delayed if the CEC bus is busy. Only the driver can fill this in accurately. So split up the ts field into an rx_ts and a tx_ts. Also move the status fields to after the 'reply' field: they were placed in a strange position and make much more sense when grouped with the other status-related fields. This patch also makes sure that the timestamp is taken as soon as possible. Change-Id: I643006cc32cbc6073b6ce8fa7ae03b63b3b0e266 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Git-commit: 980e0b36b55985dd0a37acd25d29c8f21482db32 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions