Lines Matching +full:linux +full:- +full:event +full:- +full:codes
1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include <linux/types.h>
11 #include <linux/cpumask.h>
12 #include <linux/jump_label.h>
164 /** General pmu event codes specified in SBI PMU extension */
184 * event type in Linux kernel perf framework.
214 /* SBI PMU event types */
222 /* SBI PMU event types */
228 /* Helper macros to decode event idx */
269 /* SBI STA (steal-time accounting) extension */
282 #define SBI_SHMEM_DISABLE -1
290 /* SBI return error codes */
292 #define SBI_ERR_FAILURE -1
293 #define SBI_ERR_NOT_SUPPORTED -2
294 #define SBI_ERR_INVALID_PARAM -3
295 #define SBI_ERR_DENIED -4
296 #define SBI_ERR_INVALID_ADDRESS -5
297 #define SBI_ERR_ALREADY_AVAILABLE -6
298 #define SBI_ERR_ALREADY_STARTED -7
299 #define SBI_ERR_ALREADY_STOPPED -8
300 #define SBI_ERR_NO_SHMEM -9
322 static inline int sbi_console_getchar(void) { return -ENOENT; } in sbi_console_getchar()
385 return -EPERM; in sbi_err_map_linux_errno()
387 return -EINVAL; in sbi_err_map_linux_errno()
389 return -EFAULT; in sbi_err_map_linux_errno()
393 return -ENOTSUPP; in sbi_err_map_linux_errno()
402 static inline int sbi_remote_fence_i(const struct cpumask *cpu_mask) { return -1; } in sbi_remote_fence_i()