DPDK 25.03.0-rc0
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
18#ifdef __cplusplus
19extern "C" {
20#endif
21
27 uint32_t power_monitor : 1;
29 uint32_t power_pause : 1;
31 uint32_t power_monitor_multi : 1;
33};
34
41void
43
47__extension__
48enum rte_cpu_flag_t;
49
59__extension__
60const char *
61rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);
62
73__extension__
74int
75rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);
76
83int
85
93unsigned long
94rte_cpu_getauxval(unsigned long type);
95
104int
105rte_cpu_strcmp_auxval(unsigned long type, const char *str);
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* _RTE_CPUFLAGS_H_ */
__extension__ int rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature)
unsigned long rte_cpu_getauxval(unsigned long type)
__extension__ const char * rte_cpu_get_flag_name(enum rte_cpu_flag_t feature)
int rte_cpu_is_supported(void)
int rte_cpu_strcmp_auxval(unsigned long type, const char *str)
void rte_cpu_get_intrinsics_support(struct rte_cpu_intrinsics *intrinsics)
uint32_t power_pause
Definition: rte_cpuflags.h:29
uint32_t power_monitor_multi
Definition: rte_cpuflags.h:31
uint32_t power_monitor
Definition: rte_cpuflags.h:27