[Bug translator/7042] Make upstream kernel developers happy
mhiramat at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Jan 27 10:46:00 GMT 2009
------- Additional Comments From mhiramat at redhat dot com 2009-01-27 01:21 -------
Here, I'd like to try to figure out technical details of my idea.
> - Modify ftrace to support kernel modules. this might have to involve
> Steven Rostedt.
This basically means exporting register_tracer() for kernel modules and adding
unregister_tracer().
> - Modify staprun/stapio to support ftrace interface, and replace transport
> functions with ftrace interfaces.
staprun may not be changed so much. stapio will be changed, but mainly the
change will be just about the path of debugfs file.
> - Get rid of duplicate codes from runtime.
this needs more investigation. I assume that most of autoconfs will be removed
and some of safety memory/register accessing code should be merged to upstream
kernel for debugging.
> - Modify translator to generate ftrace module.
This doesn't means using ftrace_printk(). Systemtap will generate a kernel
module which has a struct tracer and its own ring buffer file(because several
tracers will run in parallel).
> - Push useful parts of runtime code to upstream kernel(might be "kernel
> APIs for tracers").
As I said above, some of safety code should be merged, and other utility codes
including unwinder, map, statistics, taskfinder and so on.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=7042
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list