]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a994c422316c300c5c9c03480e29e5504edd4e2
tree4e572da3619bc301724e53b90816a2f96082d58b
parenta7bf356554a9a96674ae6c797e30d60de54a4f87
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