Subject: Re: Using splsched()
To: None <tech-kern@NetBSD.ORG>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-kern
Date: 11/14/1997 18:50:50
Eduardo Horvath says:
> For kernel profiling you still need to build a profiling kernel and add
> code to function entry and exits, don't you?
No. You just need to start a timer which, periodically:
- looks at SR
- if in kernel mode, looks at PC and frame pointer, and using frame pointer,
calling functions' PC,
- statistically sums both.
The real work is to map PC region to function call, but this can be done
off-measurement.
Of course, your method would work, too.
-is