ntb_pingpong: Add a debugfs file to get the ping count
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 20 Jun 2016 19:15:11 +0000 (13:15 -0600)
committerJon Mason <jdmason@kudzu.us>
Fri, 5 Aug 2016 14:21:07 +0000 (10:21 -0400)
commit20572ee1c577609f38b56b81c760dcb4151f1dbf
tree4e572da3619bc301724e53b90816a2f96082d58b
parentbfcaa39652bf64294261415e5fa18ef0445a4d74
ntb_pingpong: Add a debugfs file to get the ping count

This commit adds a debugfs 'count' file to ntb_pingpong. This is so
testing with ntb_pingpong can be automated beyond just checking the
logs for pong messages.

The count file returns a number which increments every pong. The
counter can be cleared by writing a zero.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_pingpong.c