Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 2cd28ca

Browse files
author
Stephanie Labasan
committed
Fixing libmsr build issues on Ubuntu.
- Removing profile.h include from test source files. - Updating build notes for libmsr, msrmod, and powmon. Signed-off-by: Stephanie Labasan <[email protected]>
1 parent 505253e commit 2cd28ca

12 files changed

+28
-47
lines changed

README

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ Installation
3333
Installation is simple. You will need [CMAKE](http://www.cmake.org) version 2.8
3434
or higher and GCC. In most cases, the installation is as follows:
3535

36-
$ cmake . -DCMAKE_PREFIX_INSTALL=build/
36+
$ cmake . -DCMAKE_INSTALL_PREFIX=${HOME}/build/libmsr
37+
$ make
38+
$ make install
3739

3840
The installation depends on a `master.h` file, which defines the offsets for
3941
several MSRs given a particular architecture (e.g., Sandy Bridge, Ivy Bridge,

TODO

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Ongoing
1111

1212
- [2016-08-08] Finish tagging PCI configuration (CSR) files with Doxygen tags.
1313

14-
- [2016-08-11] Check functionality of signalCombined.c once batch operation is
15-
fixed. There may be some changes.
16-
17-
- [2016-08-11] Check functionality of powmon with current libmsr status. Remove
18-
check for older version of libmsr.
19-
2014
- [2016-08-11] Add member variables for converted bit fields (i.e.,
2115
human-readable values) in performance counter structs. Current implementation
2216
only stores raw values of bit fields.

demoapps/powmon/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
POWMON
2+
======
3+
This directory contains three libmsr-based power monitors.
4+
5+
powmon
6+
------
7+
Samples and prints power consumption and allocation per socket for
8+
systems with two sockets
9+
10+
power_wrapper_static
11+
--------------------
12+
Samples and prints power consumption and allocation per socket for systems with
13+
two sockets after setting a power cap
14+
15+
power_wrapper_dynamic
16+
--------------------
17+
Samples and prints power consumption and allocation per socket for systems with
18+
two sockets and adjusts the cap stepwise every 500 ms
19+
20+
21+
Notes
22+
-----
23+
Each monitor includes a usage string. All three monitors are wrappers around
24+
some other process that will be executing on the node and include logic so that
25+
only one monitor is run per node.

demoapps/powmon/README.txt

-29
This file was deleted.

msrmod/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
v0.0 alpha
22
This tool is in alpha and has not been fully tested. Additionally, updates will
33
be sparse.
4-
5-
To install, modify the LIBMSR_LIB and LIBMSR_INC variables in the Makefile so
6-
that the path links to libmsr.so (only tested on v0.1.14 and newer) and
7-
to the location of the libmsr header files, respectively.

test/libmsr_dump_data.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "msr_thermal.h"
1111
#include "msr_counters.h"
1212
#include "msr_clocks.h"
13-
#include "profile.h"
1413
#include "msr_misc.h"
1514
#include "msr_turbo.h"
1615
#include "csr_core.h"

test/libmsr_test.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "msr_thermal.h"
1111
#include "msr_counters.h"
1212
#include "msr_clocks.h"
13-
#include "profile.h"
1413
#include "msr_misc.h"
1514
#include "msr_turbo.h"
1615
#include "csr_core.h"

test/power_unit_test.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "msr_thermal.h"
1111
#include "msr_counters.h"
1212
#include "msr_clocks.h"
13-
#include "profile.h"
1413
#include "msr_misc.h"
1514
#include "msr_turbo.h"
1615
#include "csr_core.h"

test/pstate_test.c

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "msr_thermal.h"
1313
#include "msr_counters.h"
1414
#include "msr_clocks.h"
15-
#include "profile.h"
1615
#include "msr_misc.h"
1716
#include "msr_turbo.h"
1817
#include "csr_core.h"

test/read_rapl_data.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "msr_thermal.h"
1111
#include "msr_counters.h"
1212
#include "msr_clocks.h"
13-
#include "profile.h"
1413
#include "msr_misc.h"
1514
#include "msr_turbo.h"
1615
#include "csr_core.h"

test/translate_pkg_rapl_limit.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "msr_thermal.h"
1111
#include "msr_counters.h"
1212
#include "msr_clocks.h"
13-
#include "profile.h"
1413
#include "msr_misc.h"
1514
#include "msr_turbo.h"
1615
#include "csr_core.h"

test/turbo_test.c

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "msr_thermal.h"
1313
#include "msr_counters.h"
1414
#include "msr_clocks.h"
15-
#include "profile.h"
1615
#include "msr_misc.h"
1716
#include "msr_turbo.h"
1817
#include "csr_core.h"

0 commit comments

Comments
 (0)