]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: sparc64: memory: Add tests for privileged ADI driver
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 21 Jun 2017 14:48:36 +0000 (08:48 -0600)
committerAllen Pais <allen.pais@oracle.com>
Sat, 24 Jun 2017 01:27:49 +0000 (06:57 +0530)
commit5fcad67d6b92129880a6af331f402dc7f721025f
treeb1b91d919678126da911a5350b57c4759eac4222
parent7016211858349f0ca352d09566222c781068e7cc
selftests: sparc64: memory: Add tests for privileged ADI driver

This patch contains a few basic tests for verifying proper
functionality of the sparc64 privileged ADI driver.

The tests also report simple statistics of how long the read(),
write(), and seek() operations took to complete.

Syscall Call    AvgTime AvgSize
        Count   (ticks) (bytes)
-------------------------------
read          3  167134    8133
pread         4  137217    6741
write         3   73787    8133
pwrite        4   65832    6741
seek         10    2422       0

Ran 8 tests
All tests passed

Orabug: 26170808
Reviewed-by: Allen Pais <allen.pais@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
tools/testing/selftests/sparc/Makefile [new file with mode: 0644]
tools/testing/selftests/sparc/drivers/Makefile [new file with mode: 0644]
tools/testing/selftests/sparc/drivers/adi_test.c [new file with mode: 0644]