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.
This commit is contained in:
parent
170fa9aa6d
commit
e90a289784
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user