CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/02/06 02:13:41
Modified files:
sys/arch/i386/i386: db_trace.c locore.s
sys/arch/i386/include: cpu.h cpufunc.h db_machdep.h
sys/ddb : db_prof.c
sys/arch/amd64/amd64: db_trace.c
Log message:
Implement Dynamic Profiling, a ddb(4) based & gprof compatible kernel
profiling framework, for i386.
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.
A new sysctl knob, ddb.profile, need to be set to 1 in securelevel 0
to be able to use this feature.
ok jasper@, guenther@, mlarkin@