MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_cpu_get_features

Function rte_cpu_get_features

dpdk/lib/eal/arm/rte_cpuflags.c:125–132  ·  view source on GitHub ↗

* Read AUXV software register and get cpu features for ARM */

Source from the content-addressed store, hash-verified

123 * Read AUXV software register and get cpu features for ARM
124 */
125static void
126rte_cpu_get_features(hwcap_registers_t out)
127{
128 out[REG_HWCAP] = rte_cpu_getauxval(AT_HWCAP);
129 out[REG_HWCAP2] = rte_cpu_getauxval(AT_HWCAP2);
130 if (!rte_cpu_strcmp_auxval(AT_PLATFORM, PLATFORM_STR))
131 out[REG_PLATFORM] = 0x0001;
132}
133
134/*
135 * Checks if a particular flag is available on current machine.

Callers 1

rte_cpu_get_flag_enabledFunction · 0.70

Calls 2

rte_cpu_getauxvalFunction · 0.50
rte_cpu_strcmp_auxvalFunction · 0.50

Tested by

no test coverage detected