PAPI 7.1.0.0
Loading...
Searching...
No Matches
sw_multiplex.h
Go to the documentation of this file.
1#ifndef MULTIPLEX_H
2#define MULTIPLEX_H
3
4#define PAPI_MAX_SW_MPX_EVENTS 32
5
6/* Structure contained in the EventSet structure that
7 holds information about multiplexing. */
8
9typedef enum
11
16typedef struct _MPX_EventSet {
19 struct _threadlist *mythr;
21 struct _masterevent *(mev[PAPI_MAX_SW_MPX_EVENTS]);
25 long long start_c, stop_c;
26 long long start_values[PAPI_MAX_SW_MPX_EVENTS];
27 long long stop_values[PAPI_MAX_SW_MPX_EVENTS];
28 long long start_hc[PAPI_MAX_SW_MPX_EVENTS];
30
31typedef struct EventSetMultiplexInfo {
33 int ns;
34 int flags;
36
37int mpx_check( int EventSet );
38int mpx_init( int );
39int mpx_add_event( MPX_EventSet **, int EventCode, int domain,
40 int granularity );
41int mpx_remove_event( MPX_EventSet **, int EventCode );
42int MPX_add_events( MPX_EventSet ** mpx_events, int *event_list, int num_events,
43 int domain, int granularity );
44int MPX_stop( MPX_EventSet * mpx_events, long long *values );
45int MPX_cleanup( MPX_EventSet ** mpx_events );
46void MPX_shutdown( void );
47int MPX_reset( MPX_EventSet * mpx_events );
48int MPX_read( MPX_EventSet * mpx_events, long long *values, int called_by_stop );
49int MPX_start( MPX_EventSet * mpx_events );
50
51#endif /* MULTIPLEX_H */
static int EventSet
Definition: init_fini.c:8
static long long values[NUM_EVENTS]
Definition: init_fini.c:10
static int num_events
MPX_EventSet * mpx_evset
Definition: sw_multiplex.h:32
long long start_c
Definition: sw_multiplex.h:25
MPX_status status
Definition: sw_multiplex.h:17
struct _threadlist * mythr
Definition: sw_multiplex.h:19
int mpx_remove_event(MPX_EventSet **, int EventCode)
Definition: sw_multiplex.c:418
int mpx_add_event(MPX_EventSet **, int EventCode, int domain, int granularity)
Definition: sw_multiplex.c:305
void MPX_shutdown(void)
int mpx_check(int EventSet)
int MPX_read(MPX_EventSet *mpx_events, long long *values, int called_by_stop)
Definition: sw_multiplex.c:823
int MPX_add_events(MPX_EventSet **mpx_events, int *event_list, int num_events, int domain, int granularity)
Definition: sw_multiplex.c:676
#define PAPI_MAX_SW_MPX_EVENTS
Definition: sw_multiplex.h:4
int MPX_start(MPX_EventSet *mpx_events)
Definition: sw_multiplex.c:692
MPX_status
Definition: sw_multiplex.h:10
@ MPX_RUNNING
Definition: sw_multiplex.h:10
@ MPX_STOPPED
Definition: sw_multiplex.h:10
int MPX_reset(MPX_EventSet *mpx_events)
Definition: sw_multiplex.c:937
int MPX_stop(MPX_EventSet *mpx_events, long long *values)
Definition: sw_multiplex.c:974
int mpx_init(int)
int MPX_cleanup(MPX_EventSet **mpx_events)