From 1bfae52f16a11a993a0ed44c40a2f881efad64eb Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 23 May 2004 18:38:27 +0000 Subject: Build prof_machdep.c if profiling. Kernel profiling for amd64's (normal and high resolution) should now compile and work as (un)well as on i386's. It works better than user profiling because: - it uses _cyg_profile_func_*() instead of .mcount(), so it doesn't suffer from gcc misspelling .mcount as mcount. - it doesn't neglect saving %rax in .mcount(). The SMP case hasn't been tested. The high resolution subcase of this uses the i8254, and as on i386's, the locking for this is deficient and the i8254 is too inefficient. The acpi timer is also too inefficient. --- sys/conf/files.amd64 | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/conf/files.amd64') diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 3176469..1953474 100644 --- a/sys/conf/files.amd64 +++ b/sys/conf/files.amd64 @@ -69,6 +69,7 @@ amd64/amd64/mpboot.S optional smp amd64/amd64/mptable.c optional mptable amd64/amd64/mptable_pci.c optional mptable pci amd64/amd64/nexus.c standard +amd64/amd64/prof_machdep.c optional profiling-routine amd64/amd64/pmap.c standard amd64/amd64/sigtramp.S standard amd64/amd64/support.S standard -- cgit v1.1