Messages in this thread | | | Date | Thu, 6 Nov 2014 16:01:22 +0100 | From | Borislav Petkov <> | Subject | Re: [for-next][PATCH 1/4] ftrace/x86: Add dynamic allocated trampoline for ftrace_ops |
| |
On Thu, Nov 06, 2014 at 08:57:15AM -0500, Steven Rostedt wrote: > > > +/* Trampolines can only be created if modules are supported */ > > > > Just for my own understanding: why? You're not loading additional .ko's > > right? > > It goes back to the EXEC issue. The module allocation goes through > leaps and bounds to get memory allocated for EXEC correct. I wasn't > about to duplicate that. > > Ideally, there should be a generic way to allocate memory that will be > used for executing code, but right now we depend on module code.
Yah, that could be a nice addition (in a separate patch, ontop, as you say) to explain the dependency on CONFIG_MODULES, which is not trivially apparent.
-- Regards/Gruss, Boris.
Sent from a fat crate under my desk. Formatting is fine. --
| |