Rawhide kernel options not enabled?

Roland McGrath roland at redhat.com
Thu Feb 5 00:14:42 UTC 2009


> > Or you could take my advice of many moons ago now and find less cockamamy
> > ways to implement this. ;-)
> 
> By what? Rewriting gcc?

Only a wee little bit. ;-) Seriously, -pg is eight kinds of wrong, and not
even what you really want anyway.  (If your probe points are at actual
entry points instead of inside prologues, then you can get the function
arguments directly, assuming you know which calling convention that
particular function has, which you don't really but you'd probably be happy
pretending you did.)

You do not really need any kind of magical list of spots generated at
compile time.  You can just do insertion anywhere it works.  (If you're
willing to fall back to kprobes, it works most anywhere.)  You can keep it
real primitive like now and just only work where there is exactly NOP5
sitting there.  Then all you're really asking for at build time is to
insert a gratuitous NOP5 at entry points.  A compiler tweak for that is a
pretty simple kludge, not even tied in to actual code generation magic.
You could probably even do it with crazy-ass asm/.o fiddling as is your wont.


Thanks,
Roland




More information about the Fedora-kernel-list mailing list