PAPI  5.3.0.0
papi_libpfm4_events.h
Go to the documentation of this file.
00001 #ifndef _PAPI_LIBPFM4_EVENTS_H
00002 #define _PAPI_LIBPFM4_EVENTS_H
00003 
00004 /*
00005 * File:    papi_libpfm4_events.h
00006 */
00007 
00008 #include "perfmon/pfmlib.h"
00009 #include PEINCLUDE
00010 
00011 struct native_event_t {
00012   int component;
00013   char *pmu;
00014   int libpfm4_idx;
00015   char *allocated_name;
00016   char *base_name;
00017   char *pmu_plus_name;
00018   int users;
00019   long long config;
00020   long long config1;
00021   long long config2;
00022   int type;
00023 };
00024 
00025 #define PMU_TYPE_CORE   1
00026 #define PMU_TYPE_UNCORE 2
00027 #define PMU_TYPE_OS     4
00028 
00029 struct native_event_table_t {
00030    struct native_event_t *native_events;
00031    int num_native_events;
00032    int allocated_native_events;
00033    pfm_pmu_info_t default_pmu;
00034    int pmu_type;
00035 };
00036 
00037 
00038 /* Prototypes for libpfm name library access */
00039 
00040 int _papi_libpfm4_error( int pfm_error );
00041 int _papi_libpfm4_shutdown(void);
00042 int _papi_libpfm4_init(papi_vector_t *my_vector);
00043 
00044 #endif // _PAPI_LIBPFM4_EVENTS_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines