<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/tools/power/cpupower, branch update-toolchain</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/tools/power/cpupower?h=update-toolchain</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/tools/power/cpupower?h=update-toolchain'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2024-07-02T21:30:32Z</updated>
<entry>
<title>cpupower: fix lib default installation path</title>
<updated>2024-07-02T21:30:32Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-07-02T07:56:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=3a5bb5066f4c7170e850b930e84b1075e25f8e90'/>
<id>urn:sha1:3a5bb5066f4c7170e850b930e84b1075e25f8e90</id>
<content type='text'>
Invocation the tool built with the default settings fails:
$ cpupower
cpupower: error while loading shared libraries: libcpupower.so.1: cannot
open shared object file: No such file or directory

The issue is that Makefile puts the library to "/usr/lib64" dir for a 64
bit machine. This is wrong. According to the "File hierarchy standard
specification:
https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf

"/usr/lib&lt;qual&gt;" dirs are intended for alternative-format libraries
(e.g., "/usr/lib32" for 32-bit libraries on a 64-bit machine (optional)).

The utility is built for the current machine and doesn't handle
'CROSS_COMPILE' and 'ARCH' env variables. It also doesn't change bit
depth. So the result is always the same - binary for x86_64
architecture. Therefore the library should be put in the '/usr/lib'
dir regardless of the build options.
This is the case for all the distros that comply with the
'File Hierarchy Standard 3.0" by Linux Foundation. Most of the distros
comply with it. For example, one can check this by examining the
"/usr/lb64" dir on debian-based distros and find that it contains only
"/usr/lib64/ld-linux-x86-64.so.2". And examine that "/usr/lib" contains
both 32 and 64 bit code:
find /usr/lib -name "*.so*" -type f | xargs file | grep 32-bit
find /usr/lib -name "*.so*" -type f | xargs file | grep 64-bit

Fix the issue by changing library destination dir to "/usr/lib".

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Disable direct build of the 'bench' subproject</title>
<updated>2024-06-28T21:55:20Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-26T16:45:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=cdaed24abf835d9e94322b5298120a104b2775bb'/>
<id>urn:sha1:cdaed24abf835d9e94322b5298120a104b2775bb</id>
<content type='text'>
Execution of the 'make' command in the 'bench' subfolder causes the
following error:

$ make O=cpupower/build/ DESTDIR=cpupower/install/ -j8
"  CC      " cpupower/build//main.o
"  CC      " cpupower/build//parse.o
/bin/sh: 1: "  CC      "cpupower/build//system.o
  CC      : not found
  make: *** [Makefile:21: cpupower/build//main.o] Error 127
  make: *** Waiting for unfinished jobs....
  /bin/sh: 1:   CC      : not found
  /bin/sh: 1:   CC      : not found
  make: *** [Makefile:21: cpupower/build//parse.o] Error 127
  make: *** [Makefile:21: cpupower/build//system.o] Error 127

The makefile uses variables defined in the main project makefile and it
is not intended to run standalone. The reason is that 'bench' subproject
depends on the 'libcpupower' library, see the 'compile-bench' target in
the main makefile.
Add a check that prevents standalone execution of the 'bench' makefile.

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Change the var type of the 'monitor' subcommand display mode</title>
<updated>2024-06-20T16:08:08Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-20T15:57:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=3e1f12c26646eb0ad67d3eaefd32f765997da6a8'/>
<id>urn:sha1:3e1f12c26646eb0ad67d3eaefd32f765997da6a8</id>
<content type='text'>
There is a type 'enum operation_mode_e' contains the display modes of
the 'monitor' subcommand. This type isn't used though, instead the
variable 'mode' is of a simple 'int' type.
Change 'mode' variable type from 'int' to 'enum operation_mode_e' in
order to improve compiler type checking.
Built and tested this with different monitor cmdline params. Everything
works as expected, that is nothing changed and no regressions encountered.

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Remove absent 'v' parameter from monitor man page</title>
<updated>2024-06-20T15:48:13Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-19T06:47:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a286db937ebd90067dac44aa0e0924468e8f0a90'/>
<id>urn:sha1:a286db937ebd90067dac44aa0e0924468e8f0a90</id>
<content type='text'>
Remove not supported '-v' parameter from the cpupower's 'monitor'
command description.
There is a '-v' parameter described in cpupower's 'monitor' command man
page. It isn't supported at the moment, and perhaps has never been
supported. When I run the monitor with this parameter I get the
following:

$ sudo LD_LIBRARY_PATH=lib64/ bin/cpupower monitor -v
monitor: invalid option -- 'v'
invalid or unknown argument
$ sudo LD_LIBRARY_PATH=lib64/ bin/cpupower monitor -V
monitor: invalid option -- 'V'
invalid or unknown argument

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Improve cpupower build process description</title>
<updated>2024-06-18T18:09:09Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-15T12:56:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=3dbc921479ea718586c9aa75d5b9191beeac691c'/>
<id>urn:sha1:3dbc921479ea718586c9aa75d5b9191beeac691c</id>
<content type='text'>
Enhance cpupower build process description with the information on
building and installing the utility to the user defined directories
as well as with the information on the way of running the utility from
the custom defined installation directory.

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Add 'help' target to the main Makefile</title>
<updated>2024-06-18T18:09:02Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-15T13:26:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=705c80dfefb5471b84395011f04e2d93008b6795'/>
<id>urn:sha1:705c80dfefb5471b84395011f04e2d93008b6795</id>
<content type='text'>
Make "cpupower" building process more user friendly by adding 'help'
target to the main makefile. This target describes various build
and cleaning options available to the user.

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>cpupower: Replace a dead reference link with working ones</title>
<updated>2024-06-18T18:08:50Z</updated>
<author>
<name>Roman Storozhenko</name>
<email>romeusmeister@gmail.com</email>
</author>
<published>2024-06-17T18:05:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a8f8c43082fd5a8ac723126f4a38bca08d277897'/>
<id>urn:sha1:a8f8c43082fd5a8ac723126f4a38bca08d277897</id>
<content type='text'>
Replace a dead reference link to a turbo boost technology description with
a reference to a root page of the technology on the Intel site, and add
another one, describing power management technology, which includes short
description of the turbo boost.

Signed-off-by: Roman Storozhenko &lt;romeusmeister@gmail.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools/power/cpupower: Fix Pstate frequency reporting on AMD Family 1Ah CPUs</title>
<updated>2024-05-28T15:22:57Z</updated>
<author>
<name>Dhananjay Ugwekar</name>
<email>Dhananjay.Ugwekar@amd.com</email>
</author>
<published>2024-04-30T08:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=43cad521c6d228ea0c51e248f8e5b3a6295a2849'/>
<id>urn:sha1:43cad521c6d228ea0c51e248f8e5b3a6295a2849</id>
<content type='text'>
Update cpupower's P-State frequency calculation and reporting with AMD
Family 1Ah+ processors, when using the acpi-cpufreq driver. This is due
to a change in the PStateDef MSR layout in AMD Family 1Ah+.

Tested on 4th and 5th Gen AMD EPYC system

Signed-off-by: Ananth Narayan &lt;Ananth.Narayan@amd.com&gt;
Signed-off-by: Dhananjay Ugwekar &lt;Dhananjay.Ugwekar@amd.com&gt;
Reviewed-by: Mario Limonciello &lt;mario.limonciello@amd.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Fix cpupower-frequency-info.1 man page typo</title>
<updated>2024-03-06T16:27:57Z</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan@jankratochvil.net</email>
</author>
<published>2024-02-12T13:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=a114d9f1f2cf4896d838ab0a9c30a75411736829'/>
<id>urn:sha1:a114d9f1f2cf4896d838ab0a9c30a75411736829</id>
<content type='text'>
cpupower-frequency-info.1 man page type is incorrect for
related-cpus. Fix it.

utils/cpufreq-info.c
        {"related-cpus",  no_argument,   NULL,   'r'},
        {"affected-cpus", no_argument,   NULL,   'a'},

Fixed changelog before applying:
Shuah Khan &lt;skhan@linuxfoundation.org&gt;

Signed-off-by: Jan Kratochvil &lt;jan@jankratochvil.net&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>tools cpupower bench: Override CFLAGS assignments</title>
<updated>2024-01-21T23:57:51Z</updated>
<author>
<name>Stanley Chan</name>
<email>schan@cloudflare.com</email>
</author>
<published>2023-11-27T21:20:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=0086ffec768bec6f5d61fc7e406af640eb912a24'/>
<id>urn:sha1:0086ffec768bec6f5d61fc7e406af640eb912a24</id>
<content type='text'>
Allow user to specify outside CFLAGS values as make argument

Corrects an issue where CFLAGS is passed as a make argument for
cpupower, but bench's makefile does not inherit and append to them.

Signed-off-by: Stanley Chan &lt;schan@cloudflare.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
</feed>
