39 lines
436 B
C
39 lines
436 B
C
#pragma once
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct topo_desc;
|
|
|
|
int
|
|
topo_num_core();
|
|
|
|
int
|
|
topo_num_numa();
|
|
|
|
int
|
|
topo_core_to_numa(int coreid);
|
|
|
|
void
|
|
topo_destroy();
|
|
|
|
int
|
|
topo_init(int enable_alloc, int verbose);
|
|
|
|
void *
|
|
topo_malloc(unsigned int node, size_t size);
|
|
|
|
void
|
|
topo_free(unsigned int node, void * addr);
|
|
|
|
uint64_t
|
|
topo_uptime_ns();
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|