This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/7042] Make upstream kernel developers happy
- From: "mhiramat at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 27 Jan 2009 01:21:08 -0000
- Subject: [Bug translator/7042] Make upstream kernel developers happy
- References: <20081121132446.7042.mhiramat@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.