Skip to content

Commit

Permalink
drop HACK_TO_REMOVE_DUPLICATE_ERROR
Browse files Browse the repository at this point in the history
Change-Id: Ideb45b0a0300160499531ed01fe982f7bc8a0862
  • Loading branch information
rdementi committed Jun 23, 2020
1 parent 9c8f862 commit b0d0f39
Show file tree
Hide file tree
Showing 16 changed files with 1 addition and 27 deletions.
11 changes: 0 additions & 11 deletions cpucounters.h
Expand Up @@ -506,17 +506,6 @@ typedef std::vector<uint64> eventGroup_t;

class PerfVirtualControlRegister;

/*
#ifndef HACK_TO_REMOVE_DUPLICATE_ERROR
template class PCM_API std::allocator<TopologyEntry>;
template class PCM_API std::vector<TopologyEntry>;
template class PCM_API std::allocator<CounterWidthExtender *>;
template class PCM_API std::vector<CounterWidthExtender *>;
template class PCM_API std::allocator<uint32>;
template class PCM_API std::vector<uint32>;
template class PCM_API std::allocator<char>;
#endif
*/
/*!
\brief CPU Performance Monitor
Expand Down
1 change: 0 additions & 1 deletion pcm-core.cpp
Expand Up @@ -16,7 +16,6 @@
/*! \file pcm-core.cpp
\brief Example of using CPU counters: implements a performance counter monitoring utility for Intel Core, Offcore events
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef _MSC_VER
#define strtok_r strtok_s
Expand Down
1 change: 0 additions & 1 deletion pcm-iio.cpp
Expand Up @@ -13,7 +13,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

// written by Patrick Lu,
// Aaron Cruz
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#pragma warning(disable : 4996) // for sprintf
Expand Down
1 change: 0 additions & 1 deletion pcm-latency.cpp
Expand Up @@ -12,7 +12,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*/
//
// written by Subhiksha Ravisundar
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#pragma warning(disable : 4996) // for sprintf
Expand Down
1 change: 0 additions & 1 deletion pcm-lspci.cpp
Expand Up @@ -12,7 +12,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*/

// written by Patrick Lu
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#pragma warning(disable : 4996) // for sprintf
Expand Down
1 change: 0 additions & 1 deletion pcm-memory.cpp
Expand Up @@ -18,7 +18,6 @@
/*! \file pcm-memory.cpp
\brief Example of using CPU counters: implements a performance counter monitoring utility for memory controller channels and DIMMs (ranks) + PMM memory traffic
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm-mmio.cpp
Expand Up @@ -12,7 +12,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*/

// written by Roman Dementiev
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm-msr.cpp
Expand Up @@ -12,7 +12,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*/

// written by Roman Dementiev
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm-numa.cpp
Expand Up @@ -16,7 +16,6 @@
/*! \file pcm-numa.cpp
\brief Example of using CPU counters: implements a performance counter monitoring utility for NUMA (remote and local memory accesses counting). Example for programming offcore response events
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm-pcicfg.cpp
Expand Up @@ -12,7 +12,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*/

// written by Roman Dementiev
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#include <windows.h>
Expand Down
3 changes: 1 addition & 2 deletions pcm-pcie.cpp
Expand Up @@ -18,7 +18,6 @@
/*! \file pcm-pcie.cpp
\brief Example of using uncore CBo counters: implements a performance counter monitoring utility for monitoring PCIe bandwidth
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#ifdef _MSC_VER
#include <windows.h>
#include "../PCM_Win/windriver.h"
Expand Down Expand Up @@ -273,4 +272,4 @@ int main(int argc, char * argv[])
// ================================== End Printing Output ==================================

exit(EXIT_SUCCESS);
}
}
1 change: 0 additions & 1 deletion pcm-power.cpp
Expand Up @@ -14,7 +14,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// written by Roman Dementiev
// added PPD cycles by Thomas Willhalm

#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm-sensor.cpp
Expand Up @@ -22,7 +22,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
/*! \file pcm-sensor.cpp
\brief Example of using CPU counters: implements a graphical plugin for KDE ksysguard
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#include <string>
#include <sstream>
Expand Down
1 change: 0 additions & 1 deletion pcm-tsx.cpp
Expand Up @@ -16,7 +16,6 @@
/*! \file pcm-tsx.cpp
\brief Example of using CPU counters: implements a performance counter monitoring utility for Intel Transactional Synchronization Extensions
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion pcm.cpp
Expand Up @@ -18,7 +18,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
/*! \file pcm.cpp
\brief Example of using CPU counters: implements a simple performance counter monitoring utility
*/
#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef _MSC_VER
#include <windows.h>
Expand Down
1 change: 0 additions & 1 deletion realtime.cpp
Expand Up @@ -13,7 +13,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// written by Roman Dementiev
//

#define HACK_TO_REMOVE_DUPLICATE_ERROR
#include "cpucounters.h"
#include "cpuasynchcounter.h"
#include <iostream>
Expand Down

0 comments on commit b0d0f39

Please sign in to comment.