Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 697014 Details for
Bug 910649
kernel BUG at arch/x86/kernel/kprobes.c:356
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Have ftrace notifier run at the end of module unloading
ftrace-mod-exit.patch (text/plain), 2.39 KB, created by
Steven Rostedt
on 2013-02-13 20:09:37 UTC
(
hide
)
Description:
Have ftrace notifier run at the end of module unloading
Filename:
MIME Type:
Creator:
Steven Rostedt
Created:
2013-02-13 20:09:37 UTC
Size:
2.39 KB
patch
obsolete
>diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c >index ce8c3d6..b324014 100644 >--- a/kernel/trace/ftrace.c >+++ b/kernel/trace/ftrace.c >@@ -3996,37 +3996,51 @@ static void ftrace_init_module(struct module *mod, > ftrace_process_locs(mod, start, end); > } > >-static int ftrace_module_notify(struct notifier_block *self, >- unsigned long val, void *data) >+static int ftrace_module_notify_enter(struct notifier_block *self, >+ unsigned long val, void *data) > { > struct module *mod = data; > >- switch (val) { >- case MODULE_STATE_COMING: >+ if (val == MODULE_STATE_COMING) > ftrace_init_module(mod, mod->ftrace_callsites, > mod->ftrace_callsites + > mod->num_ftrace_callsites); >- break; >- case MODULE_STATE_GOING: >+ return 0; >+} >+ >+static int ftrace_module_notify_exit(struct notifier_block *self, >+ unsigned long val, void *data) >+{ >+ struct module *mod = data; >+ >+ if (val == MODULE_STATE_GOING) > ftrace_release_mod(mod); >- break; >- } > > return 0; > } > #else >-static int ftrace_module_notify(struct notifier_block *self, >- unsigned long val, void *data) >+static int ftrace_module_notify_enter(struct notifier_block *self, >+ unsigned long val, void *data) >+{ >+ return 0; >+} >+static int ftrace_module_notify_exit(struct notifier_block *self, >+ unsigned long val, void *data) > { > return 0; > } > #endif /* CONFIG_MODULES */ > >-struct notifier_block ftrace_module_nb = { >- .notifier_call = ftrace_module_notify, >+struct notifier_block ftrace_module_enter_nb = { >+ .notifier_call = ftrace_module_notify_enter, > .priority = INT_MAX, /* Run before anything that can use kprobes */ > }; > >+struct notifier_block ftrace_module_exit_nb = { >+ .notifier_call = ftrace_module_notify_exit, >+ .priority = -1, /* Run after anything that can use kprobes */ >+}; >+ > extern unsigned long __start_mcount_loc[]; > extern unsigned long __stop_mcount_loc[]; > >@@ -4058,9 +4072,13 @@ void __init ftrace_init(void) > __start_mcount_loc, > __stop_mcount_loc); > >- ret = register_module_notifier(&ftrace_module_nb); >+ ret = register_module_notifier(&ftrace_module_enter_nb); >+ if (ret) >+ pr_warning("Failed to register trace ftrace module enter notifier\n"); >+ >+ ret = register_module_notifier(&ftrace_module_exit_nb); > if (ret) >- pr_warning("Failed to register trace ftrace module notifier\n"); >+ pr_warning("Failed to register trace ftrace module exit notifier\n"); > > set_ftrace_early_filters(); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 910649
: 697014