MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / serialReadPmc

Function serialReadPmc

runtime/Util.h:163–171  ·  view source on GitHub ↗

* This is a convenience function to make a call to rdpmc with serializing * wrappers to ensure all earlier instructions have executed and no later * instructions have executed. * * \param ecx * The index of the PMC register to read the value from. The correct * value of this parameter is dependent on the selected pmc. */

Source from the content-addressed store, hash-verified

161 * value of this parameter is dependent on the selected pmc.
162 */
163static FORCE_INLINE
164uint64_t
165serialReadPmc(int ecx)
166{
167 serialize();
168 uint64_t retVal = rdpmc(ecx);
169 serialize();
170 return retVal;
171}
172
173#define PERFUTILS_DIE(format_, ...) do { \
174 fprintf(stderr, format_, ##__VA_ARGS__); \

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.70

Tested by

no test coverage detected