문제

What timekeeping functions should I use if I want to profile the early boot process?

I want to see which drivers take too long to probe/attach/initialize and if there is a way to reduce that amount of time. There may even be earlier parts of boot which are too slow.

도움이 되었습니까?

해결책

Kernel tracing can e.g. be done with ktr(4).

Another option is to use dtrace. Sample scripts for monitoring the kernel can be found in /usr/src/cddl/contrib/dtracetoolkit/Kernel/.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top