HPCToolkit
DCPIMetricDesc.cpp File Reference
#include <iostream>
#include <string>
#include <cstring>
#include "DCPIMetricDesc.hpp"
#include <lib/support/diagnostics.h>
Include dependency graph for DCPIMetricDesc.cpp:

Go to the source code of this file.

Classes

class  DCPITranslationTable
 
struct  DCPITranslationTable::Entry
 

Macros

#define TYPEPM(m)   DCPI_MTYPE_PM | (m)
 
#define TYPERM(m)   DCPI_MTYPE_RM | (m)
 
#define DCPI_PM_CNTR(pfx, n1, n2, n3, bit1, bit2, bit3)
 
#define DCPI_PM_ATTR(name, truebits, falsebits)
 
#define DCPI_PM_TRAP(name, truebits, falsebits)
 
#define TABLE_SZ   sizeof(DCPITranslationTable::table) / sizeof(DCPITranslationTable::Entry)
 

Functions

int SetDCPIMetricDescBit (const char *token, DCPIMetricDesc &m)
 
DCPIMetricDesc String2DCPIMetricDesc (const char *str)
 

Macro Definition Documentation

◆ DCPI_PM_ATTR

#define DCPI_PM_ATTR (   name,
  truebits,
  falsebits 
)
Value:
{ name, TYPEPM((truebits)) }, \
{ "!" name, TYPEPM((falsebits)) }
#define TYPEPM(m)

Definition at line 126 of file DCPIMetricDesc.cpp.

◆ DCPI_PM_CNTR

#define DCPI_PM_CNTR (   pfx,
  n1,
  n2,
  n3,
  bit1,
  bit2,
  bit3 
)
Value:
{ pfx n1, TYPEPM((bit1)) }, \
{ pfx n2, TYPEPM((bit2)) }, \
{ pfx n3, TYPEPM((bit3)) }
#define TYPEPM(m)

Definition at line 119 of file DCPIMetricDesc.cpp.

◆ DCPI_PM_TRAP

#define DCPI_PM_TRAP (   name,
  truebits,
  falsebits 
)
Value:
{ name, TYPEPM((truebits)) }, \
{ "!" name, TYPEPM((falsebits)) }
#define TYPEPM(m)

Definition at line 132 of file DCPIMetricDesc.cpp.

◆ TABLE_SZ

#define TABLE_SZ   sizeof(DCPITranslationTable::table) / sizeof(DCPITranslationTable::Entry)

Definition at line 138 of file DCPIMetricDesc.cpp.

◆ TYPEPM

#define TYPEPM (   m)    DCPI_MTYPE_PM | (m)

Definition at line 115 of file DCPIMetricDesc.cpp.

◆ TYPERM

#define TYPERM (   m)    DCPI_MTYPE_RM | (m)

Definition at line 116 of file DCPIMetricDesc.cpp.

Function Documentation

◆ SetDCPIMetricDescBit()

int SetDCPIMetricDescBit ( const char *  token,
DCPIMetricDesc m 
)

Definition at line 297 of file DCPIMetricDesc.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ String2DCPIMetricDesc()

DCPIMetricDesc String2DCPIMetricDesc ( const char *  str)

Definition at line 243 of file DCPIMetricDesc.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: