On 09/04/16 11:22, Martin Pieuchot wrote:
CVSROOT: /cvs
Module name: src
Changes by: m...@cvs.openbsd.org 2016/09/04 03:22:29
Modified files:
sys/arch/amd64/amd64: db_trace.c locore.S vector.S
sys/arch/amd64/include: cpu.h cpufunc.h db_machdep.h frameasm.h
sys/conf : GENERIC files
sys/ddb : db_extern.h db_usrreq.c db_var.h
sys/kern : init_main.c kern_clock.c kern_sysctl.c
subr_prof.c
sys/sys : sysctl.h systm.h
Added files:
sys/ddb : db_prof.c
Log message:
Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel
profiling framework.
Code patching is used to enable probes when entering functions. The
probes will call a mcount()-like function to match the behavior of a
GPROF kernel.
Currently only available on amd64 and guarded under DDBPROF. Support
for other archs will follow soon.
A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0
^^^^^^^^^^^
I meant ddb.profile! pointed out by jcs@