I agree that it would be nice, but the problem is that the profile buffer
needs to be pretty large in order to get instruction-level profiles, and
you can't allocate it except at bootup time.
Note that a lot of the stuff that is CONFIG_PROFILE'd away is in the init
section of the kernel anyway, so it would never take up any space when
running as it is. So the only real cost of profiling is a test that is
done by the timer interrupt.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html