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

Function rte_cpu_get_features

dpdk/lib/eal/ppc/rte_cpuflags.c:78–83  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

76 * Read AUXV software register and get cpu features for Power
77 */
78static void
79rte_cpu_get_features(hwcap_registers_t out)
80{
81 out[REG_HWCAP] = rte_cpu_getauxval(AT_HWCAP);
82 out[REG_HWCAP2] = rte_cpu_getauxval(AT_HWCAP2);
83}
84
85/*
86 * Checks if a particular flag is available on current machine.

Callers 1

rte_cpu_get_flag_enabledFunction · 0.70

Calls 1

rte_cpu_getauxvalFunction · 0.50

Tested by

no test coverage detected