found/fixed the following typos

- indicies -> indices
- requrired -> required
- guranteed -> guaranteed

in `tools/testing/selftests/kvm/riscv/sbi_pmu_test.c`

Signed-off-by: Soham Metha <sohammeth...@gmail.com>
---
 tools/testing/selftests/kvm/riscv/sbi_pmu_test.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c 
b/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
index 924a335d2262..6a8818ac036c 100644
--- a/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
+++ b/tools/testing/selftests/kvm/riscv/sbi_pmu_test.c
@@ -212,7 +212,7 @@ static void update_counter_info(int num_counters)
        for (i = 0; i < num_counters; i++) {
                ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_GET_INFO, i, 
0, 0, 0, 0, 0);
 
-               /* There can be gaps in logical counter indicies*/
+               /* There can be gaps in logical counter indices*/
                if (ret.error)
                        continue;
                GUEST_ASSERT_NE(ret.value, 0);
@@ -446,7 +446,7 @@ static void test_pmu_basic_sanity(void)
                ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_GET_INFO, i,
                                0, 0, 0, 0, 0);
 
-               /* There can be gaps in logical counter indicies*/
+               /* There can be gaps in logical counter indices*/
                if (ret.error)
                        continue;
                GUEST_ASSERT_NE(ret.value, 0);
@@ -474,7 +474,7 @@ static void test_pmu_events_snaphost(void)
        struct riscv_pmu_snapshot_data *snapshot_data = snapshot_gva;
        int i;
 
-       /* Verify presence of SBI PMU and minimum requrired SBI version */
+       /* Verify presence of SBI PMU and minimum required SBI version */
        verify_sbi_requirement_assert();
 
        snapshot_set_shmem(snapshot_gpa, 0);
@@ -489,7 +489,7 @@ static void test_pmu_events_snaphost(void)
                if (counter_mask_available & (BIT(i)))
                        
GUEST_ASSERT_EQ(READ_ONCE(snapshot_data->ctr_values[i]), 0);
        }
-       /* Only these two events are guranteed to be present */
+       /* Only these two events are guaranteed to be present */
        test_pmu_event_snapshot(SBI_PMU_HW_CPU_CYCLES);
        test_pmu_event_snapshot(SBI_PMU_HW_INSTRUCTIONS);
 
@@ -500,7 +500,7 @@ static void test_pmu_events_overflow(void)
 {
        int num_counters = 0, i = 0;
 
-       /* Verify presence of SBI PMU and minimum requrired SBI version */
+       /* Verify presence of SBI PMU and minimum required SBI version */
        verify_sbi_requirement_assert();
 
        snapshot_set_shmem(snapshot_gpa, 0);
-- 
2.34.1


Reply via email to