diff options
author | Chengming Zhou <[email protected]> | 2020-07-29 02:05:54 +0800 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2020-07-30 22:45:31 -0400 |
commit | c5f51572a7fdff5be9e67c231de593155f394ab3 (patch) | |
tree | dda7c7bcb4e8c08e54f9d9864e31116c843f5676 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 8a224ffb3f52b0027f6b7279854c71a31c48fc97 (diff) |
ftrace: Do not let direct or IPMODIFY ftrace_ops be added to module and set trampolines
When inserting a module, we find all ftrace_ops referencing it on the
ftrace_ops_list. But FTRACE_OPS_FL_DIRECT and FTRACE_OPS_FL_IPMODIFY
flags are special, and should not be set automatically. So warn and
skip ftrace_ops that have these two flags set and adding new code.
Also check if only one ftrace_ops references the module, in which case
we can use a trampoline as an optimization.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Chengming Zhou <[email protected]>
Signed-off-by: Muchun Song <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions