Hi, Kris, I beleive something is wrong with FreeBSD 8.0's configuration or compiling. I just made "LOCK_PROFILING" work in my system. Here is my procedures, (1) $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root_at_wan-koi.fnal.gov:/usr/obj/usr/src/sys/wenjikernel amd64 (2) go to "/usr/obj/usr/src/sys/wenjikernel", then run "vi config.c", and check "OPTIONS LOCK_PROFILING" is included. (3) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (4) run "sysctl -a|grep lock", NO "LOCK_PROFILING" capability! (5) go to "/usr/obj/usr/src/sys/wenjikernel", then run "vi config.c", comment out ""#ifdef INCLUDE_CONFIG_FILE" (6) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (7) run "sysctl -a|grep lock", NO "LOCK_PROFILING" capability! (8) $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root_at_wan-koi.fnal.gov:/usr/obj/usr/src/sys/GENERIC amd64 please note here: "GENERIC", I was actually compiling and installing with "wenjikenrel". I do not know why it automatically goes with "GENERIC" (9) go to "/usr/src/sys/amd64/conf", add "OPTIONS LOCK_PROFILING" to GENERIC (10) go to "/usr/src", run "make buildkernel KERNCONF=wenjikernel", "make installkernel KERNCONF=wenjikernel", "reboot" (11) "uname -a" $ uname -a FreeBSD wan-koi.fnal.gov 8.0-CURRENT FreeBSD 8.0-CURRENT #11: Mon Mar 30 14:17:49 UTC 2009 root_at_wan-koi.fnal.gov:/usr/obj/usr/src/sys/wenjikernel amd64 (12) run "sysctl -a|grep lock|grep debug" $ sysctl -a|grep lock|grep debug debug.acpi.reset_clock: 1 debug.rwlock.loops: 10000 debug.rwlock.retry: 10 debug.to_avg_lockcalls: 11 debug.lock.prof.enable: 0 debug.lock.prof.reset: 0 debug.lock.prof.stats: debug.lock.prof.rejected: 0 debug.lock.prof.skipcount: 0 debug.lock.prof.skipspin: 0 Now you see, "LOCK_PROFILING" works now! I just repeat the procedures, So, something is wrong with the configuration and compling! wenjiReceived on Mon Mar 30 2009 - 14:22:34 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:45 UTC