API Reference Manual
1.46.0
|
System information.
Data Structures | |
union | odp_cpu_arch_isa_t |
CPU ISA versions. More... | |
struct | odp_system_info_t |
System info. More... | |
struct | odp_system_meminfo_t |
Memory information. More... | |
struct | odp_system_memblock_t |
Memory block information. More... | |
Macros | |
#define | ODP_SYSTEM_MEMBLOCK_NAME_LEN 64 |
Maximum memory block name length in chars (including null char) | |
Typedefs | |
typedef enum odp_cpu_arch_t | odp_cpu_arch_t |
CPU instruction set architecture (ISA) families. | |
typedef enum odp_cpu_arch_arm_t | odp_cpu_arch_arm_t |
ARM ISA versions. More... | |
typedef enum odp_cpu_arch_mips_t | odp_cpu_arch_mips_t |
MIPS ISA versions. | |
typedef enum odp_cpu_arch_ppc_t | odp_cpu_arch_ppc_t |
PowerPC ISA versions. | |
typedef enum odp_cpu_arch_riscv_t | odp_cpu_arch_riscv_t |
RISC-V ISA versions. | |
typedef enum odp_cpu_arch_x86_t | odp_cpu_arch_x86_t |
x86 ISA versions | |
typedef union odp_cpu_arch_isa_t | odp_cpu_arch_isa_t |
CPU ISA versions. | |
typedef struct odp_system_info_t | odp_system_info_t |
System info. | |
typedef struct odp_system_meminfo_t | odp_system_meminfo_t |
Memory information. | |
typedef struct odp_system_memblock_t | odp_system_memblock_t |
Memory block information. | |
Functions | |
int | odp_system_info (odp_system_info_t *info) |
Retrieve system information. More... | |
int32_t | odp_system_meminfo (odp_system_meminfo_t *info, odp_system_memblock_t block[], int32_t num) |
Retrieve ODP memory usage information. More... | |
uint64_t | odp_sys_huge_page_size (void) |
Default system huge page size in bytes. More... | |
int | odp_sys_huge_page_size_all (uint64_t size[], int num) |
System huge page sizes in bytes. More... | |
uint64_t | odp_sys_page_size (void) |
Page size in bytes. More... | |
int | odp_sys_cache_line_size (void) |
Cache line size in bytes. More... | |
void | odp_sys_info_print (void) |
Print system info. More... | |
void | odp_sys_config_print (void) |
Print configuration. More... | |
typedef enum odp_cpu_arch_arm_t odp_cpu_arch_arm_t |
ARM ISA versions.
ISA versions are defined in ascending order.
enum odp_cpu_arch_t |
CPU instruction set architecture (ISA) families.
Enumerator | |
---|---|
ODP_CPU_ARCH_UNKNOWN | Unknown CPU architecture. |
ODP_CPU_ARCH_ARM | ARM. |
ODP_CPU_ARCH_MIPS | MIPS. |
ODP_CPU_ARCH_PPC | PowerPC. |
ODP_CPU_ARCH_RISCV | RISC-V. |
ODP_CPU_ARCH_X86 | x86 |
Definition at line 31 of file spec/system_info.h.
enum odp_cpu_arch_arm_t |
ARM ISA versions.
ISA versions are defined in ascending order.
Definition at line 57 of file spec/system_info.h.
enum odp_cpu_arch_mips_t |
MIPS ISA versions.
Enumerator | |
---|---|
ODP_CPU_ARCH_MIPS_UNKNOWN | Unknown MIPS ISA version. |
Definition at line 114 of file spec/system_info.h.
enum odp_cpu_arch_ppc_t |
PowerPC ISA versions.
Enumerator | |
---|---|
ODP_CPU_ARCH_PPC_UNKNOWN | Unknown PPC ISA version. |
Definition at line 123 of file spec/system_info.h.
enum odp_cpu_arch_riscv_t |
RISC-V ISA versions.
Enumerator | |
---|---|
ODP_CPU_ARCH_RISCV_UNKNOWN | Unknown RISC-V ISA version. |
Definition at line 132 of file spec/system_info.h.
enum odp_cpu_arch_x86_t |
x86 ISA versions
Enumerator | |
---|---|
ODP_CPU_ARCH_X86_UNKNOWN | Unknown x86 ISA version. |
ODP_CPU_ARCH_X86_I686 | x86 32bit ISA |
ODP_CPU_ARCH_X86_64 | x86 64bit ISA |
Definition at line 141 of file spec/system_info.h.
int odp_system_info | ( | odp_system_info_t * | info | ) |
Retrieve system information.
Fills in system information structure on success. The call is not intended for fast path use.
[out] | info | Pointer to system info struct for output |
0 | on success |
<0 | on failure |
int32_t odp_system_meminfo | ( | odp_system_meminfo_t * | info, |
odp_system_memblock_t | block[], | ||
int32_t | num | ||
) |
Retrieve ODP memory usage information.
Retrieves information about ODP memory usage for debugging and monitoring purposes. A successful call fills in system memory info and outputs up to 'num' elements into memory block info array. Each array element represents a memory block used due to an API call (SHM reservation, pool creation, etc) or an implementation internal memory allocation.
When return value is 'num' or less, it indicates the number of elements written. If return value is larger than 'num', all 'num' elements were written and the return value indicates the number of elements that would have been written into a large enough array.
[out] | info | Pointer to memory info struct for output |
[out] | block | Pointer memory block info array for output |
num | Maximum number of array elements to output (0 ... array size) |
<0 | on failure |
uint64_t odp_sys_huge_page_size | ( | void | ) |
Default system huge page size in bytes.
0 | on no huge pages |
int odp_sys_huge_page_size_all | ( | uint64_t | size[], |
int | num | ||
) |
System huge page sizes in bytes.
Returns the number of huge page sizes supported by the system. Outputs up to 'num' sizes when the 'size' array pointer is not NULL. If return value is larger than 'num', there are more supported sizes than the function was allowed to output. If return value (N) is less than 'num', only sizes [0 ... N-1] have been written. Returned values are ordered from smallest to largest.
[out] | size | Points to an array of huge page sizes for output |
num | Maximum number of huge page sizes to output |
<0 | on failure |
uint64_t odp_sys_page_size | ( | void | ) |
int odp_sys_cache_line_size | ( | void | ) |
void odp_sys_info_print | ( | void | ) |
Print system info.
Print out implementation defined information about the system. This information is intended for debugging purposes and may contain e.g. information about CPUs, memory and other HW configuration.
void odp_sys_config_print | ( | void | ) |
Print configuration.
Print out implementation defined information about selected configuration options. This information is intended for debugging purposes and may contain e.g. content of various configuration files, environment variables and configuration options of ODP API.