This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
dependency on CONFIG_CPU_FREQ
- From: Li Guanglei <guanglei at cn dot ibm dot com>
- To: "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Date: Fri, 23 Jun 2006 16:09:24 +0800
- Subject: dependency on CONFIG_CPU_FREQ
- Organization: IBM CSTL
hi,
I found runtime/time.c make SystemTap dependent on CONFIG_CPU_FREQ.
If the kernel doesn't turn on CONFIG_CPU_FREQ, it will cause the
insmod failure, e.g:
...
make -rR -f /usr/src/linux-2.6.17.1/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.17.1/Module.symvers
-I /tmp/stap8uGyqO/Modules.symvers -o /tmp/stap8uGyqO/Modules.symvers
/tmp/stap8uGyqO/stap_11302.o
WARNING: ".cpufreq_register_notifier" [/tmp/stap8uGyqO/stap_11302.ko]
undefined!
WARNING: ".cpufreq_unregister_notifier"
[/tmp/stap8uGyqO/stap_11302.ko] undefined!
WARNING: ".cpufreq_get" [/tmp/stap8uGyqO/stap_11302.ko] undefined!
...
I think most kernel running on servers/desktops don't have and
needn't CONFIG_CPU_FREQ turned on, at least it's true for RH shipped
kernel.
- Guanglei