function libbenchmark_misc_pal_helper_new_topology_node
Jump to navigation
Jump to search
Source Files
└───test_and_benchmark └───libbenchmark ├───inc │ └───libbenchmark │ libbenchmark_porting_abstraction_layer.h └───src └───libbenchmark_misc libbenchmark_misc_pal_helpers.c
Enums
enum libbenchmark_topology_node_cache_type;
Opaque Structures
struct libbenchmark_topology_state; struct libbenchmark_topology_node_state;
Prototype
void libbenchmark_misc_pal_helper_add_cache_node_to_topology_tree( struct libbenchmark_topology_state *ts, struct libbenchmark_topology_node_state *tns, lfds711_pal_uint_t level, enum libbenchmark_topology_node_cache_type type );
Parameters
struct libbenchmark_topology_state *ts
- A pointer a struct libbenchmark_topology obtained from libbenchmark_pal_populate_topology.
struct libbenchmark_topology_node_state *tns
- A pointer a struct libbenchmark_topology_node obtained from libbenchmark_misc_pal_helper_new_topology_node.
lfds711_pal_uint_t level
- The cache's level (typically 1 to 3).
enum libbenchmark_topology_node_cache_type type
- This argument indicates the type of the cache (data, instruction or unified).
Return Value
No return value.
Example
Notes
This helper function is used by libbenchmark_pal_populate_topology to add a cache node to the topology tree.