Skip to content

Commit

Permalink
Merge pull request #114 from opcm/push_201901
Browse files Browse the repository at this point in the history
Push 201901
  • Loading branch information
opcm authored Jan 31, 2019
2 parents 86d7d99 + 741a3e4 commit bf28a6a
Show file tree
Hide file tree
Showing 46 changed files with 1,795 additions and 1,175 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ LIB= -lpthread -lc++
CXXFLAGS += -std=c++11
endif

COMMON_OBJS = msr.o cpucounters.o pci.o client_bw.o utils.o
COMMON_OBJS = msr.o cpucounters.o pci.o mmio.o client_bw.o utils.o
EXE_OBJS = $(EXE:.x=.o)
OBJS = $(COMMON_OBJS) $(EXE_OBJS)

Expand Down Expand Up @@ -80,6 +80,9 @@ libPCM.a: $(COMMON_OBJS)
sed -e 's/^ *//' -e 's/$$/:/' >> $*.d
@rm -f $*.d.tmp

memoptest.x: memoptest.cpp
g++ -Wall -g -O0 -std=c++11 memoptest.cpp -o memoptest.x

nice:
uncrustify --replace -c ~/uncrustify.cfg *.cpp *.h WinMSRDriver/Win7/*.h WinMSRDriver/Win7/*.c WinMSRDriver/WinXP/*.h WinMSRDriver/WinXP/*.c PCM_Win/*.h PCM_Win/*.cpp

Expand Down
4 changes: 2 additions & 2 deletions PCM-Core_Win/pcm-core-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-core-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-IIO_Win/pcm-iio-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-iio-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-LSPCI_Win/pcm-lspci-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-lspci-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-Latency_Win/pcm-latency-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-latency-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-Lib_Win/pcm-lib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\utils.cpp" />
<ClCompile Include="..\PCM_Win\restrictDriverAccess.cpp">
<CompileAsManaged>true</CompileAsManaged>
Expand All @@ -202,7 +202,7 @@
<ClInclude Include="pcm-lib.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions PCM-MSR_Win/pcm-msr-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<ClCompile Include="..\cpucounters.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-msr-win.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-Memory_Win/pcm-memory-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<ClCompile Include="..\cpucounters.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-memory-win.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-NUMA_Win/pcm-numa-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<ClCompile Include="..\cpucounters.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-numa-win.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-PCICFG_Win/pcm-pcicfg-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-pcicfg-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-PCIE_Win/pcm-pcie-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<ClCompile Include="..\cpucounters.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-pcie-win.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-Power_Win/pcm-power-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-power-win.cpp" />
<ClCompile Include="stdafx.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM-TSX_Win/pcm-tsx-win.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<ClCompile Include="..\cpucounters.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="..\freegetopt\getopt.cpp" />
<ClCompile Include="pcm-tsx-win.cpp" />
<ClCompile Include="..\winpmem\winpmem.cpp" />
Expand All @@ -169,7 +169,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
4 changes: 2 additions & 2 deletions PCM_Win/pcm.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<ClCompile Include="..\winpmem\winpmem.cpp" />
<ClCompile Include="..\msr.cpp" />
<ClCompile Include="..\pci.cpp" />
<ClCompile Include="..\client_bw.cpp" />
<ClCompile Include="..\client_bw.cpp" /> <ClCompile Include="..\mmio.cpp" />
<ClCompile Include="pcm.cpp" />
<ClCompile Include="restrictDriverAccess.cpp">
<CompileAsManaged>true</CompileAsManaged>
Expand All @@ -168,7 +168,7 @@
<ClInclude Include="..\cpucounters.h" />
<ClInclude Include="..\msr.h" />
<ClInclude Include="..\pci.h" />
<ClInclude Include="..\client_bw.h" />
<ClInclude Include="..\client_bw.h" /> <ClInclude Include="..\mmio.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="..\types.h" />
<ClInclude Include="windriver.h" />
Expand Down
2 changes: 1 addition & 1 deletion WinMSRDriver/Win7/msrmain.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2009-2012, Intel Corporation
Copyright (c) 2009-2018, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
Loading

0 comments on commit bf28a6a

Please sign in to comment.