| H A D | sbi_pmu_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * sbi_pmu_test.c - Tests the riscv64 SBI PMU functionality. 99 static void start_counter(unsigned long counter, unsigned long start_flags, in start_counter() argument 104 ret = sbi_ecall(SBI_EXT_PMU, SBI_EXT_PMU_COUNTER_START, counter, 1, start_flags, in start_counter() 106 __GUEST_ASSERT(ret.error == 0, "Unable to start counter %ld\n", counter); in start_counter() 110 stop_reset_counter(unsigned long counter,unsigned long stop_flags) stop_reset_counter() argument 120 stop_counter(unsigned long counter,unsigned long stop_flags) stop_counter() argument 278 unsigned long counter; test_pmu_event() local 326 unsigned long counter; test_pmu_event_snapshot() local 379 unsigned long counter; test_pmu_event_overflow() local [all...] |