PAPI 7.1.0.0
Loading...
Searching...
No Matches
papi_libpfm4_events.h
Go to the documentation of this file.
1#ifndef _PAPI_LIBPFM4_EVENTS_H
2#define _PAPI_LIBPFM4_EVENTS_H
3
4/*
5* File: papi_libpfm4_events.h
6*/
7
8#include "perfmon/pfmlib.h"
9#include PEINCLUDE
10
13 char *pmu;
17 char *base_name;
22 int cpu;
23 int users;
24 perf_event_attr_t attr;
25};
26
27#define PMU_TYPE_CORE 1
28#define PMU_TYPE_UNCORE 2
29#define PMU_TYPE_OS 4
30
35 pfm_pmu_info_t default_pmu;
37};
38
39
40/* Prototypes for libpfm name library access */
41
42int _papi_libpfm4_error( int pfm_error );
44int _papi_libpfm4_init(papi_vector_t *my_vector);
45
46#endif // _PAPI_LIBPFM4_EVENTS_H
convert libpfm error codes to PAPI error codes
Initialize the libpfm4 code.
Shutdown any initialization done by the libpfm4 code.
perf_event_attr_t attr
pfm_pmu_info_t default_pmu
struct native_event_t * native_events