Skip to contentSkip to conversation

perf test x86: Fix typo in intel-pt-test

PATCH Applied Thomas Falcon 3 participants 3 messages Oct 7, 2024 – Oct 9, 2024 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf test x86: Fix typo in intel-pt-test

Change function name "is_hydrid" to "is_hybrid".

---
 tools/perf/arch/x86/tests/intel-pt-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/arch/x86/tests/intel-pt-test.c +2 -2
index 09d61fa736e3..b217ed67cd4e 100644
@@ -375,7 +375,7 @@ static int get_pt_caps(int cpu, struct pt_caps *caps)
 	return 0;
 }
 
-static bool is_hydrid(void)
+static bool is_hybrid(void)
 {
 	unsigned int eax, ebx, ecx, edx = 0;
 	bool result;
@@ -441,7 +441,7 @@ int test__intel_pt_hybrid_compat(struct test_suite *test, int subtest)
 	int ret = TEST_OK;
 	int cpu;
 
-	if (!is_hydrid()) {
+	if (!is_hybrid()) {
 		test->test_cases[subtest].skip_reason = "not hybrid";
 		return TEST_SKIP;
 	}
Signature · 1 line
2.46.2
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Thomas Falcon

Change function name "is_hydrid" to "is_hybrid".

Quoted 26 lines
---
 tools/perf/arch/x86/tests/intel-pt-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/arch/x86/tests/intel-pt-test.c +2 -2
index 09d61fa736e3..b217ed67cd4e 100644
@@ -375,7 +375,7 @@ static int get_pt_caps(int cpu, struct pt_caps *caps)
 	return 0;
 }
 
-static bool is_hydrid(void)
+static bool is_hybrid(void)
 {
 	unsigned int eax, ebx, ecx, edx = 0;
 	bool result;
@@ -441,7 +441,7 @@ int test__intel_pt_hybrid_compat(struct test_suite *test, int subtest)
 	int ret = TEST_OK;
 	int cpu;
 
-	if (!is_hydrid()) {
+	if (!is_hybrid()) {
 		test->test_cases[subtest].skip_reason = "not hybrid";
 		return TEST_SKIP;
 	}
maintainer Applied
#2 lore raw
In reply to Thomas Falcon
Quoted 3 lines · Thomas Falcon

Change function name "is_hydrid" to "is_hybrid".

Applied to perf-tools-next, thanks!

[1/1] perf test x86: Fix typo in intel-pt-test

      commit: 9f759d41b3ed8feb550473027e674edf46ce7b94

Best regards,
Namhyung