Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
Why does it need to happen at NMI time? Why can't you just do it in the user process's context,
before resuming execution of their code?
The setitimer(ITIMER_PROF) solution that userspace profilers use clearly works out fine for
userspace profiling. Can't you do something similar for userspace profiling from within the kernel?
The stack trace of the userspace half clearly can't change between when you received the NMI and
when you resume execution of the process...
That just leaves the complication of implementing the DWARF unwinder in the kernel, but there's
already much more complex code in the kernel...that really seems like it should be a non-issue.
Finding a profiler that works, damnit
Posted Mar 26, 2010 23:28 UTC (Fri) by nix (subscriber, #2304)
Posted Mar 27, 2010 14:10 UTC (Sat) by garloff (subscriber, #319)
Posted Mar 27, 2010 15:12 UTC (Sat) by foom (subscriber, #14868)
Posted Mar 28, 2010 0:26 UTC (Sun) by garloff (subscriber, #319)
Posted Apr 4, 2010 12:35 UTC (Sun) by chantecode (subscriber, #54535)
Posted Apr 5, 2010 1:37 UTC (Mon) by foom (subscriber, #14868)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds