The simple interface implemented by the following routines allows the user to record hardware events inside instrumented regions from both C and Fortran.
◆ PAPI_hl_read()
read performance events inside of a region and store the difference to the corresponding beginning of the region
Definition at line 2013 of file papi_hl.c.
2014{
2016
2018
2022 }
2023
2027 }
2028
2031
2032
2036
2038}
Get the thread identifier of the current thread.
#define HLDBG(format, args...)
#define PAPIHL_DEACTIVATED
THREAD_LOCAL_STORAGE_KEYWORD unsigned int _local_region_begin_cnt
static int _internal_hl_read_and_store_counters(const char *region, enum region_type reg_typ)
THREAD_LOCAL_STORAGE_KEYWORD local_components_t * _local_components
static void _internal_hl_clean_up_local_data()
THREAD_LOCAL_STORAGE_KEYWORD volatile bool _local_state
◆ PAPI_hl_region_begin()
read performance events at the beginning of a region
Definition at line 1900 of file papi_hl.c.
1901{
1903
1907 }
1908
1910
1914 }
1915
1918
1922 }
1923
1927 }
1928
1934 }
1935 }
1936
1942 }
1943 }
1944
1945
1949
1954 }
1957}
Stop a running event set of a rate function.
int _internal_PAPI_hl_set_events(const char *events)
static int _internal_hl_region_id_push()
static int _internal_hl_create_event_sets()
int _internal_PAPI_hl_init()
static int _internal_hl_start_counters()
static void _internal_hl_clean_up_all(bool deactivate)
THREAD_LOCAL_STORAGE_KEYWORD int _papi_hl_events_running
THREAD_LOCAL_STORAGE_KEYWORD int _papi_rate_events_running
◆ PAPI_hl_region_end()
read performance events at the end of a region and store the difference to the corresponding beginning of the region
Definition at line 2131 of file papi_hl.c.
2132{
2134
2136
2140 }
2141
2145 }
2146
2149
2150
2154
2158}
THREAD_LOCAL_STORAGE_KEYWORD unsigned int _local_region_end_cnt
static int _internal_hl_region_id_pop()
◆ PAPI_hl_stop()
stops a running high-level event set
Definition at line 2184 of file papi_hl.c.
2185{
2187
2193 }
2194 }
2197 }
2199}
Stop counting hardware events in an event set.
static long long values[NUM_EVENTS]