Skip to content

Commit 7aa826e

Browse files
authored
Merge pull request #146 from intel-innersource/rdementi/opcm-merge-2022-01-24-1
Rdementi/opcm merge 2022 01 24 1
2 parents 92e5dea + d8aae2c commit 7aa826e

File tree

8 files changed

+20
-18
lines changed

8 files changed

+20
-18
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ freebsd_instance:
22
image_family: freebsd-12-1
33

44
task:
5-
install_script: pkg install -y gmake
5+
install_script: pkg install -y gmake cmake
66
script:
77
- cmake -B build -DCMAKE_INSTALL_PREFIX=.
88
- cd build && gmake install

.github/workflows/linux_make.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: cmake
17-
run:
17+
run: |
1818
rm -rf ${{ github.workspace }}/build
1919
cmake -B ${{ github.workspace }}/build -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}
2020
- name: make
21-
run:
21+
run: |
2222
cd ${{ github.workspace }}/build
2323
make install -j
2424

.github/workflows/macosx_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: make
2121
run: |
2222
cd ${{ github.workspace }}/build
23-
make install
23+
sudo make install

appveyor.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ configuration: Release
66
platform: x64
77
before_build:
88
- cmd: >-
9-
echo ------------------------
9+
cmake --version
1010
11-
echo Building PCM
11+
cmake -B build
12+
13+
14+
build_script:
15+
- cmake --build build --config Release --parallel
1216

13-
echo ------------------------
14-
build:
15-
project: pcm-all.sln
16-
parallel: true
17-
verbosity: minimal
1817
after_build:
19-
- cmd: 7z a pcm-all.zip %APPVEYOR_BUILD_FOLDER%\x64\Release\*.exe %APPVEYOR_BUILD_FOLDER%\x64\Release\*.dll %APPVEYOR_BUILD_FOLDER%\x64\Release\*.lib %APPVEYOR_BUILD_FOLDER%\x64\Release\*.exp
18+
- cmd: 7z a pcm-all.zip %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.exe %APPVEYOR_BUILD_FOLDER%\build\bin\Release\*.dll %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.lib %APPVEYOR_BUILD_FOLDER%\build\src\Release\*.exp
2019
artifacts:
2120
- path: pcm-all.zip
2221
name: pcm-all

doc/DOCKER_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--------------------------------------------------------------------------------
2-
How To Run Processor Counter Monitor Server Container from Docker Hub
2+
How To Run Processor Counter Monitor Server Container from GitHub Container Repository or Docker Hub
33
--------------------------------------------------------------------------------
44

55
As root user:

pcm.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Processor Counter Monitor (PCM) is an application programming interface (API) an
2525
%build
2626
mkdir build
2727
cd build
28-
cmake -DCMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT/%{_bindir}/.. -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
28+
cmake -DCMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT/ -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
2929
make -j
3030

3131
%install
@@ -64,7 +64,7 @@ rm -rf $RPM_BUILD_ROOT
6464
%{_datadir}/pcm/
6565

6666
%changelog
67-
* Tue Jun 04 2022 - [email protected]
67+
* Tue Jan 04 2022 - [email protected]
6868
Add cmake adaptation
6969
* Fri Dec 17 2021 - [email protected]
7070
Move licence.txt Linix_HOWTO.txt to doc folder
@@ -73,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
7373
* Wed Apr 01 2020 - [email protected]
7474
Add pcm-sensor-server under %files
7575
* Mon Nov 25 2019 - [email protected]
76-
call make install and use %{_sbindir} or %{_bindir}
76+
call make install and use _sbindir or _bindir
7777
* Mon Oct 21 2019 - [email protected]
7878
add opCode file to /usr/share/pcm
7979
use "install" to copy pcm-bw-histogram.sh

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ if(UNIX) # APPLE, LINUX, FREE_BSD
145145

146146
# Install extra files
147147
install(FILES pcm-bw-histogram.sh
148-
DESTINATION "sbin/pcm-bw-histogram"
148+
DESTINATION "sbin"
149+
RENAME pcm-bw-histogram
149150
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)
150151
file(GLOB OPCODE_FILES "opCode*.txt")
151152
foreach(opcode_file ${OPCODE_FILES})

src/cpucounters.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ class TemporalThreadAffinity // speedup trick for Linux, FreeBSD, DragonFlyBSD,
232232
cpu_set_t new_affinity;
233233
CPU_ZERO(&new_affinity);
234234
CPU_SET(core_id, &new_affinity);
235-
if (CPU_EQUAL(&old_affinity, &new_affinity))
235+
/* TODO: use CPU_CMP
236+
if (CPU_EQUAL(&old_affinity, &new_affinity))
236237
{
237238
return;
238239
}
240+
*/
239241
res = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &new_affinity);
240242
if (res != 0 && checkStatus)
241243
{

0 commit comments

Comments
 (0)