Commit 39d5ca62 authored by Vincent Donnefort's avatar Vincent Donnefort Committed by Marc Zyngier
Browse files

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: default avatarVincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260309162516.2623589-31-vdonnefort@google.com


Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 5bbbed42
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
#!/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
+11 −0
Original line number Diff line number Diff line
#!/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
+11 −0
Original line number Diff line number Diff line
#!/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
+11 −0
Original line number Diff line number Diff line
#!/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
+11 −0
Original line number Diff line number Diff line
#!/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