From da73c4e10cb395798abef06550334c798b6cc4f0 Mon Sep 17 00:00:00 2001 From: Haoliang Zhu Date: Fri, 2 Aug 2024 16:50:36 +0800 Subject: [PATCH] tdx-compliance: enhancement 1. Code improvement for BM/tdx-compliance/tests-trigger-cpuid.sh. Signed-off-by: Haoliang Zhu --- BM/tdx-compliance/tests-trigger-cpuid.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BM/tdx-compliance/tests-trigger-cpuid.sh b/BM/tdx-compliance/tests-trigger-cpuid.sh index 398ba738..cf41455e 100755 --- a/BM/tdx-compliance/tests-trigger-cpuid.sh +++ b/BM/tdx-compliance/tests-trigger-cpuid.sh @@ -1,3 +1,4 @@ +##!/bin/bash # Some examples on how to trigger the cpuid and capture #VE. # Register the kretprobe. echo kretprobe > /sys/kernel/debug/tdx/tdx-tests @@ -6,4 +7,4 @@ echo kretprobe > /sys/kernel/debug/tdx/tdx-tests echo trigger_cpuid 0x1f 0x0 0x0 0x0 > /sys/kernel/debug/tdx/tdx-tests # Unregister the kretprobe. -echo unregister > /sys/kernel/debug/tdx/tdx-tests \ No newline at end of file +echo unregister > /sys/kernel/debug/tdx/tdx-tests