PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
papi_libpfm_events.h
Go to the documentation of this file.
1 #ifndef _PAPI_LIBPFM_EVENTS_H
2 #define _PAPI_LIBPFM_EVENTS_H
3 #include "papi.h" /* For PAPI_event_info_t */
4 #include "papi_vector.h" /* For papi_vector_t */
5 
6 /*
7 * File: papi_libpfm_events.h
8 */
9 
10 /* Prototypes for libpfm name library access */
11 
12 int _papi_libpfm_error( int pfm_error );
13 int _papi_libpfm_setup_presets( char *name, int type, int cidx );
14 int _papi_libpfm_ntv_enum_events( unsigned int *EventCode, int modifier );
15 int _papi_libpfm_ntv_name_to_code( char *ntv_name,
16  unsigned int *EventCode );
17 int _papi_libpfm_ntv_code_to_name( unsigned int EventCode, char *name,
18  int len );
19 int _papi_libpfm_ntv_code_to_descr( unsigned int EventCode, char *name,
20  int len );
21 int _papi_libpfm_ntv_code_to_bits( unsigned int EventCode,
22  hwd_register_t * bits );
23 int _papi_libpfm_ntv_code_to_bits_perfctr( unsigned int EventCode,
24  hwd_register_t * bits );
25 int _papi_libpfm_shutdown(void);
26 int _papi_libpfm_init(papi_vector_t *my_vector, int cidx);
27 
28 
29 int _pfm_decode_native_event( unsigned int EventCode, unsigned int *event,
30  unsigned int *umask );
31 unsigned int _pfm_convert_umask( unsigned int event, unsigned int umask );
32 int prepare_umask( unsigned int foo, unsigned int *values );
33 int _papi_libpfm_ntv_code_to_info(unsigned int EventCode,
34  PAPI_event_info_t *info);
35 
36 
37 
38 /* Gross perfctr/perf_events compatability hack */
39 /* need to think up a better way to handle this */
40 
41 #ifndef __PERFMON_PERF_EVENT_H__
43  int config;
44  int type;
45 };
46 
47 #define PERF_TYPE_RAW 4;
48 
49 #endif /* !__PERFMON_PERF_EVENT_H__ */
50 
51 
53  hwd_register_t *ni_bits );
54 
55 #endif // _PAPI_LIBPFM_EVENTS_H
int _papi_libpfm_init(papi_vector_t *my_vector, int cidx)
static int prepare_umask(unsigned int foo, unsigned int *values)
int _papi_libpfm_ntv_code_to_info(unsigned int EventCode, PAPI_event_info_t *info)
int _papi_libpfm_ntv_enum_events(unsigned int *EventCode, int modifier)
device[deviceId] domain[domainId] event
Definition: linux-cuda.c:306
int _papi_libpfm_ntv_code_to_bits_perfctr(unsigned int EventCode, hwd_register_t *newbits)
Definition: perfctr-x86.c:1015
Return codes and api definitions.
int _papi_libpfm_ntv_code_to_name(unsigned int EventCode, char *ntv_name, int len)
static int cidx
Definition: event_info.c:40
unsigned int _pfm_convert_umask(unsigned int event, unsigned int umask)
pthread_attr_t foo
Definition: iozone.c:18592
int _papi_libpfm_error(int pfm_error)
int _papi_libpfm_ntv_code_to_descr(unsigned int EventCode, char *ntv_descr, int len)
int _papi_libpfm_shutdown(void)
char * name
Definition: iozone.c:23648
int _papi_libpfm_ntv_name_to_code(char *name, unsigned int *event_code)
int _papi_libpfm_ntv_code_to_bits(unsigned int EventCode, hwd_register_t *bits)
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
int _papi_libpfm_setup_counters(struct perf_event_attr *attr, hwd_register_t *ni_bits)
pthread_attr_t attr
Definition: iozone.c:18466
int _papi_libpfm_setup_presets(char *name, int type, int cidx)
static int _pfm_decode_native_event(unsigned int EventCode, unsigned int *event, unsigned int *umask)