Hi -
On Thu, Jun 12, 2008 at 12:16:35PM -0400, Masami Hiramatsu wrote:
That's an interesting idea, but errors in this table would themselves
only be caught at C compilation time. Worse, it does nothing helpful
for actually pulling out the next/prev fields of interest. Remember,
real tracing users don't care so much about the task_struct pointers,
but about observable things like PIDs. Systemtap would be back to the
debuginfo or C-header-guessing/parsing job (or embedded-C, yuck).
This is another reason why markers are a nice solution. They allow
passing of actual useful values: not just the %p pointers but the most
interesting derived values (e.g., prev->pid). And they do this
*efficiently* - in out-of-line code that imposes no measurable
overhead in the normal case..
- FChE
--