OSDN Git Service

RDS: add receive message trace used by application
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 5 Jul 2016 05:35:15 +0000 (22:35 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 2 Jan 2017 22:02:59 +0000 (14:02 -0800)
commit3289025aedc018f8fd9d0e37fb9efa0c6d531ffa
tree251ddb4c6606d91809d98d40a22e18382025664e
parentf9fb69adb6c7acca60977a4db5a5f95b8e66c041
RDS: add receive message trace used by application

Socket option to tap receive path latency in various stages
in nano seconds. It can be enabled on selective sockets using
using SO_RDS_MSG_RXPATH_LATENCY socket option. RDS will return
the data to application with RDS_CMSG_RXPATH_LATENCY in defined
format. Scope is left to add more trace points for future
without need of change in the interface.

Reviewed-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
include/uapi/linux/rds.h
net/rds/af_rds.c
net/rds/ib_recv.c
net/rds/rds.h
net/rds/recv.c
net/rds/tcp_recv.c