DPDK  20.11.10
rte_cpuflags.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4 
5 #ifndef _RTE_CPUFLAGS_H_
6 #define _RTE_CPUFLAGS_H_
7 
13 #include "rte_common.h"
14 #include <errno.h>
15 
16 #include <rte_compat.h>
17 
23  uint32_t power_monitor : 1;
25  uint32_t power_pause : 1;
27 };
28 
38 __rte_experimental
39 void
41 
45 __extension__
46 enum rte_cpu_flag_t;
47 
57 __extension__
58 const char *
59 rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);
60 
71 __extension__
72 int
73 rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);
74 
81 int
83 
91 unsigned long
92 rte_cpu_getauxval(unsigned long type);
93 
102 int
103 rte_cpu_strcmp_auxval(unsigned long type, const char *str);
104 
105 #endif /* _RTE_CPUFLAGS_H_ */
__rte_experimental void rte_cpu_get_intrinsics_support(struct rte_cpu_intrinsics *intrinsics)
unsigned long rte_cpu_getauxval(unsigned long type)
__extension__ int rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature)
uint32_t power_pause
Definition: rte_cpuflags.h:25
int rte_cpu_is_supported(void)
__extension__ const char * rte_cpu_get_flag_name(enum rte_cpu_flag_t feature)
uint32_t power_monitor
Definition: rte_cpuflags.h:23
int rte_cpu_strcmp_auxval(unsigned long type, const char *str)