tracing: selftests: Add hypervisor trace remote tests

Run the trace remote selftests with the trace remote 'hypervisor', This
trace remote is most likely created when the arm64 KVM nVHE/pKVM
hypervisor is in use.

Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260309162516.2623589-31-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
This commit is contained in:
Vincent Donnefort 2026-03-09 16:25:16 +00:00 committed by Marc Zyngier
parent 5bbbed42f7
commit 39d5ca62a3
5 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test hypervisor trace buffer size
# requires: remotes/hypervisor/write_event
SOURCE_REMOTE_TEST=1
. $TEST_DIR/remotes/buffer_size.tc
set -e
setup_remote "hypervisor"
test_buffer_size

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test hypervisor trace buffer reset
# requires: remotes/hypervisor/write_event
SOURCE_REMOTE_TEST=1
. $TEST_DIR/remotes/reset.tc
set -e
setup_remote "hypervisor"
test_reset

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test hypervisor non-consuming trace read
# requires: remotes/hypervisor/write_event
SOURCE_REMOTE_TEST=1
. $TEST_DIR/remotes/trace.tc
set -e
setup_remote "hypervisor"
test_trace

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test hypervisor consuming trace read
# requires: remotes/hypervisor/write_event
SOURCE_REMOTE_TEST=1
. $TEST_DIR/remotes/trace_pipe.tc
set -e
setup_remote "hypervisor"
test_trace_pipe

View File

@ -0,0 +1,11 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test hypervisor trace buffer unloading
# requires: remotes/hypervisor/write_event
SOURCE_REMOTE_TEST=1
. $TEST_DIR/remotes/unloading.tc
set -e
setup_remote "hypervisor"
test_unloading