Print three possible reasons /sys/kernel/debug/gup_test
cannot be opened to help users of this test diagnose
failures.
Signed-off-by: Sidhartha Kumar <sidhartha.kumar@xxxxxxxxxx>
---
v2:
- Add support for skipping the test due to unmet dependencies.
- Use errno to print a more specific message.
- Add check for root privileges.
- dropped CC to stable.
tools/testing/selftests/vm/gup_test.c | 22 +++++++++++++--
tools/testing/selftests/vm/run_vmtests.sh | 33 ++++++++++++++++-------
2 files changed, 44 insertions(+), 11 deletions(-)