mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
be8282ba22
commit
478fee28e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129627
@ -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