Geoffrey Schmit (geoffrey.schmit@ni.com) wrote on Wed, 3 Sep 2003 11:30:54 -0500:
I'm primarily interested in getting a kernel backtrace from my kernel
extension. I'm porting a library that provides various services to
other kernel extensions we develop. One of these services is to capture
a backtrace. For example, we may capture a backtrace when a kernel
extension detects an error in order to facilitate the debugging of that
error condition. As another example, we may capture a backtrace when a
kernel extension acquires a resource in order to later determine who
acquired that resource if the resource is leaked.
Sounds like you want something like the MallocStackLogging env var (and his friends), but at kernel level. Maybe looking at the code for that would be insightful, though I'm sure it wouldn't work without change at kernel level. It sure would be nice if the OS provided something like that 'for free' at kernel level :) -- ____________________________________________________________ Sean McBride, B. Eng Sean.McBride@matrox.com Mac Software Designer +1-514-822-6000 Matrox Electronic Systems Ltd. Montrial, Quibec, Canada _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Sean McBride