Arm MAP Metric Plugin Interface
Metric Plugin Interface for MAP
allinea_metric_plugin_api.h
Go to the documentation of this file.
1 
5 #ifndef ALLINEA_METRIC_PLUGIN_API_H
6 #define ALLINEA_METRIC_PLUGIN_API_H
7 
8 #include <stdint.h>
9 #include <stdlib.h>
10 #include <time.h>
11 
14 #include "allinea_safe_malloc.h"
15 #include "allinea_safe_syscalls.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
25 
32 
34 
41 
43 
66 int allinea_read_config_file(const char *variable, const char *metricId, char *value, int length);
67 
73 const char* allinea_get_custom_data(metric_id_t metricId);
74 
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif // ALLINEA_METRIC_PLUGIN_API_H
int allinea_read_config_file(const char *variable, const char *metricId, char *value, int length)
Reads the configuration file to find the value of a variable.
Types and typedefs used by the Arm MAP metric plugin API.
int allinea_get_physical_core_count(void)
Returns the number of physical cores on this system.
uintptr_t metric_id_t
Opaque handle to a metric.
Definition: allinea_metric_plugin_types.h:17
Async signal safe I/O functions for use in metric plugins.
int allinea_get_logical_core_count(void)
Returns the number of logical cores on this system.
const char * allinea_get_custom_data(metric_id_t metricId)
It returns the "customData" attribute of the "source" element from the metric definition defined in t...
Async signal safe memory management functions for use in metric plugins.
Functions for reporting errors encountered by a metric plugin library or specific metric...