Intel(r) Performance Counter Monitor
|
Example of using uncore CBo counters: implements a performance counter monitoring utility for monitoring PCIe bandwidth. More...
#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <math.h>
#include <iomanip>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <assert.h>
#include "cpucounters.h"
#include "utils.h"
Classes | |
struct | PCIeEvents_t |
struct | sample_t |
Macros | |
#define | HACK_TO_REMOVE_DUPLICATE_ERROR |
#define | PCM_DELAY_DEFAULT 1.0 |
#define | PCM_DELAY_MIN 0.015 |
#define | PCM_CALIBRATION_INTERVAL 50 |
#define | NUM_SAMPLES (1) |
Functions | |
void | getPCIeEvents (PCM *m, PCM::PCIeEventCode opcode, uint32 delay_ms, sample_t *sample, const uint32 tid=0) |
void | print_events () |
void | print_usage (const string progname) |
int | main (int argc, char *argv[]) |
Variables | |
PCIeEvents_t | aggregate_sample |
uint32 | num_events = (sizeof(PCIeEvents_t)/sizeof(uint64)) |
const uint32 | max_sockets = 4 |
Example of using uncore CBo counters: implements a performance counter monitoring utility for monitoring PCIe bandwidth.