PAPI 7.1.0.0
Loading...
Searching...
No Matches
rocs.h
Go to the documentation of this file.
1#ifndef __ROCS_H__
2#define __ROCS_H__
3
4#define ROCS_EVENTS_OPENED (0x1)
5#define ROCS_EVENTS_RUNNING (0x2)
6
7typedef struct rocs_ctx *rocs_ctx_t;
8
9/* init and shutdown interfaces */
10int rocs_init(void);
11int rocs_shutdown(void);
12
13/* native event interfaces */
14int rocs_evt_enum(unsigned int *event_code, int modifier);
15int rocs_evt_code_to_descr(unsigned int event_code, char *descr, int len);
16int rocs_evt_name_to_code(const char *name, unsigned int *event_code);
17int rocs_evt_code_to_name(unsigned int event_code, char *name, int len);
18
19/* error handling interfaces */
20int rocs_err_get_last(const char **err_string);
21
22/* profiling context handling interfaces */
23int rocs_ctx_open(unsigned int *event_ids, int num_events, rocs_ctx_t *ctx);
24int rocs_ctx_close(rocs_ctx_t ctx);
25int rocs_ctx_start(rocs_ctx_t ctx);
26int rocs_ctx_stop(rocs_ctx_t ctx);
27int rocs_ctx_read(rocs_ctx_t ctx, long long **counts);
28int rocs_ctx_write(rocs_ctx_t ctx, long long *counts);
29int rocs_ctx_reset(rocs_ctx_t ctx);
30
31#endif /* End of __ROCS_H__ */
static int num_events
const char * name
Definition: rocs.c:225
int rocs_ctx_stop(rocs_ctx_t ctx)
Definition: rocs.c:580
int rocs_err_get_last(const char **err_string)
Definition: rocs.c:450
int rocs_ctx_start(rocs_ctx_t ctx)
Definition: rocs.c:546
int rocs_evt_code_to_descr(unsigned int event_code, char *descr, int len)
Definition: rocs.c:410
int rocs_ctx_close(rocs_ctx_t ctx)
Definition: rocs.c:519
int rocs_evt_name_to_code(const char *name, unsigned int *event_code)
Definition: rocs.c:421
int rocs_ctx_open(unsigned int *event_ids, int num_events, rocs_ctx_t *ctx)
Definition: rocs.c:461
int rocs_ctx_write(rocs_ctx_t ctx, long long *counts)
Definition: rocs.c:624
int rocs_init(void)
Definition: rocs.c:333
int rocs_shutdown(void)
Definition: rocs.c:655
int rocs_ctx_reset(rocs_ctx_t ctx)
Definition: rocs.c:642
int rocs_ctx_read(rocs_ctx_t ctx, long long **counts)
Definition: rocs.c:605
int rocs_evt_code_to_name(unsigned int event_code, char *name, int len)
Definition: rocs.c:440
int rocs_evt_enum(unsigned int *event_code, int modifier)
Definition: rocs.c:384
Definition: rocs.c:305
char * descr