Package Details: corefreq-git 1.28.0-1

Git Clone URL: https://aur.archlinux.org/corefreq-git.git (read-only)
Package Base: corefreq-git
Description: CoreFreq, a processor monitoring software with a kernel module inside.
Upstream URL: http://github.com/cyring/CoreFreq
Licenses: GPL2
Submitter: CyrIng
Maintainer: CyrIng
Last Packager: CyrIng
Votes: 14
Popularity: 0.084250
First Submitted: 2015-09-07 01:04
Last Updated: 2018-07-21 15:07

Latest Comments

CyrIng commented on 2018-06-29 20:41

@timschumi Function added. Basic makepkg tests are OK

-- EDIT: according to the PKGBUILD wiki, we still need to maintain pkgver even if a pkgver() function exists

timschumi commented on 2018-06-29 14:01

@CyrIng

Could you add a pkgver() function into the PKGBUILD file so that the version number is updated automatically when building and includes the count of commits and the current revision? This would be extremely useful for people that are running auto-builders that listen on changes that happen directly in the source tree (and I think it is standard to include those numbers in packages built directly from a VCS).

I pasted a possible solution below. I'm sure that the sed/grep regex to retrieve the version number could be improved, but that is the best that I can build with my limited knowledge.

pkgver() {
    cd "${srcdir}/${_gitname}"
    echo "$(sed -nE 's/#define\s+COREFREQ_VERSION\s+"([0-9\.]+)"/\1/p' coretypes.h).r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

CyrIng commented on 2018-03-26 08:44

@mani.zaeim: please install the Linux Kernel headers files.

See DKMS [http://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support]

mani.zaeim commented on 2018-03-26 04:58

make -C /lib/modules/4.15.10-1-ARCH/build M=/tmp//aur-corefreq-git/src/CoreFreq modules make[1]: Entering directory '/tmp//aur-corefreq-git/src/CoreFreq' make[1]: /lib/modules/4.15.10-1-ARCH/build: No such file or directory. Stop. make[1]: Leaving directory '/tmp//aur-corefreq-git/src/CoreFreq' make: [Makefile:11: all] Error 2 make: Leaving directory '/tmp//aur-corefreq-git/src/CoreFreq' ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build corefreq-git.

stardiviner commented on 2017-06-06 01:59

@CyrIng, I see, problem solved.

CyrIng commented on 2017-05-27 14:13

stardiviner : You have to disable the NMI Watchdog. See the CoreFreq prerequisites @ github.com/cyring/CoreFreq#prerequisites

stardiviner commented on 2017-05-27 04:59

Updated, the previous bug is fixed now. Thanks.
I have segment fault when I run `corefreq-cli`.
I run `modprobe corefreqk` and `corefreqd` with `sudo`. Then run `corefreq-cli` get segment fault. I debug it with `gdb`.
Here is the output:
```
gdb corefreq-cli 139 ↵
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from corefreq-cli...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/corefreq-cli
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x000000000041ab23 in ?? ()
(gdb) q
A debugging session is active.

Inferior 1 [process 21088] will be killed.

Quit anyway? (y or n) y
```

CyrIng commented on 2017-05-21 11:14

-CHANGE-
@stardiviner: Issue with kernel version 4.11 is solved.
A CoreFreq commit has been pushed into the GitHub repository to fix a register renaming MSR_NHM_SNB_PKG_CST_CFG_CTL with MSR_PKG_CST_CONFIG_CONTROL; and to include the header file "linux/sched/signal.h"

Just install corefreq-git again to get fix.

CyrIng

stardiviner commented on 2017-05-21 09:46

I got the following error:
DKMS make.log for corefreq-git-1.10 for kernel 4.11.2-1-hardened (x86_64)
Sun May 21 17:33:24 CST 2017
make: Entering directory '/usr/lib/modules/4.11.2-1-hardened/build'
LD /var/lib/dkms/corefreq-git/1.10/build/built-in.o
CC [M] /var/lib/dkms/corefreq-git/1.10/build/corefreqk.o
In file included from /var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:27:0:
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c: In function ‘PerCore_Nehalem_Query’:
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:1931:23: error: ‘MSR_NHM_SNB_PKG_CST_CFG_CTL’ undeclared (first use in this function)
RDMSR(CStateConfig, MSR_NHM_SNB_PKG_CST_CFG_CTL);
^
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.h:48:10: note: in definition of macro ‘RDMSR’
: "c" (_reg) \
^~~~
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:1931:23: note: each undeclared identifier is reported only once for each function it appears in
RDMSR(CStateConfig, MSR_NHM_SNB_PKG_CST_CFG_CTL);
^
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.h:48:10: note: in definition of macro ‘RDMSR’
: "c" (_reg) \
^~~~
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c: In function ‘PerCore_SandyBridge_Query’:
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:1952:23: error: ‘MSR_NHM_SNB_PKG_CST_CFG_CTL’ undeclared (first use in this function)
RDMSR(CStateConfig, MSR_NHM_SNB_PKG_CST_CFG_CTL);
^
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.h:48:10: note: in definition of macro ‘RDMSR’
: "c" (_reg) \
^~~~
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c: In function ‘Sys_DumpTask’:
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:2826:2: error: implicit declaration of function ‘for_each_process_thread’ [-Werror=implicit-function-declaration]
for_each_process_thread(process, thread) {
^~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/corefreq-git/1.10/build/corefreqk.c:2826:43: error: expected ‘;’ before ‘{’ token
for_each_process_thread(process, thread) {
^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:301: /var/lib/dkms/corefreq-git/1.10/build/corefreqk.o] Error 1
make: *** [Makefile:1492: _module_/var/lib/dkms/corefreq-git/1.10/build] Error 2
make: Leaving directory '/usr/lib/modules/4.11.2-1-hardened/build'

adlerweb commented on 2017-04-30 08:58

If you're running into random segfaults you have to disable the nmi-watchdog using 'echo 0 > /proc/sys/kernel/nmi_watchdog'.

All comments