* 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. */
| 161 | * value of this parameter is dependent on the selected pmc. |
| 162 | */ |
| 163 | static FORCE_INLINE |
| 164 | uint64_t |
| 165 | serialReadPmc(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__); \ |
nothing calls this directly
no test coverage detected