Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Include Guards */
- #ifndef LIBPERFCOUNT_H
- #define LIBPERFCOUNT_H
- /* Includes */
- #include <stdint.h>
- /* Data types */
- /* Extern "C" Guard */
- #ifdef __cplusplus
- extern "C"{
- #endif
- /* Functions */
- /**
- * Initialize library
- */
- int pfcInit(void);
- /**
- * Finalize library
- */
- void pfcFini(void);
- /**
- * Pins calling thread to given core
- */
- void pfcPinThread(int core);
- /**
- * Configure the n counters starting at counter k.
- *
- * Stops and disables the selected counters.
- */
- int pfcWrConfigCnts(int f, int n, const uint64_t* cfg);
- /**
- * Read configuration of the n counters starting at counter k.
- */
- int pfcRdConfigCnts(int f, int n, uint64_t* cfg);
- /**
- * Sets the starting counts for the n counters starting at counter k.
- *
- * Stops and disables the selected counters.
- */
- int pfcWrCountsCnts(int f, int n, const uint64_t* cnt);
- /**
- * Read counts of the n counters starting at counter k.
- *
- * Starts the selected counters.
- */
- int pfcRdCountsCnts(int f, int n, uint64_t* cnt);
- /**
- * Translate argument to configuration.
- */
- uint64_t pfcParseConfig(const char* s);
- /**
- * Dump out available events
- */
- void pfcDumpEvents(void);
- /* End Extern "C" Guard */
- #ifdef __cplusplus
- }
- #endif
- #endif // LIBPERFCOUNT_H
Add Comment
Please, Sign In to add comment