-
Notifications
You must be signed in to change notification settings - Fork 0
Home
alastorid edited this page Jul 16, 2024
·
16 revisions
Welcome to the pcm wiki!
background
- it creates
c:\a_temp_folder
- it uses vs2019
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
mkdir c:\a_temp_folder && pushd c:\a_temp_folder && (
git clone --recursive https://github.com/alastorid/pcm.git && (
pushd pcm && (
mkdir build && pushd build && (
cmake .. -A x64
cmake --build . --config Release --parallel
popd
)
pushd src\WinMSRDriver && (
MSBuild.exe MSR.vcxproj -property:Configuration=Release -property:Platform=x64
copy x64\Release\MSR.sys ..\..\build\bin\Release\
popd
)
popd
)
)
explorer /select,c:\a_temp_folder\pcm\build\bin\Release\pcm-sensor-server.exe
popd
)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Run the pcm-sensor-server.exe on some Windows machine which turned Intel PCM on. ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::
:: Troubleshooting ::
:::::::::::::::::::::
:: If you got socket error, run the following line and retry
:: mklink /J C:\Windows\^%SystemRoot^% C:\Windows
git clone --recursive https://github.com/alastorid/pcm.git
cd pcm/scripts/grafana
./start.sh http://1.1.1.1:9738
# Or
echo 1.1.1.1:9738 > target.txt
./start-prometheus.sh target.txt
##########################################
# Check out Grafana in your browser now! #
##########################################
#####################
## Troubleshooting ##
#####################
# In case the docker website don't work
./stop.sh
./start.sh http://1.1.1.1:9738
# In case the docker website still don't work
vim /etc/selinux/config
# You know what to do with this config
# In case your 9090 port is in use by certain service, to find the service name
sudo ss -ltnp | grep ':9090'
systemctl stop that_service
1.1.1.1
is the windows box running pcm-sensor-server.exe