diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-07 02:19:51 -0400 |
commit | a1922ed661ab2c1637d0b10cde933bd9cd33d965 (patch) | |
tree | 0f1777542b385ebefd30b3586d830fd8ed6fda5b /kernel/kmod.c | |
parent | 75e33751ca8bbb72dd6f1a74d2810ddc8cbe4bdf (diff) | |
parent | d28daf923ac5e4a0d7cecebae56f3e339189366b (diff) |
Merge branch 'tracing/core' into tracing/hw-breakpoints
Conflicts:
arch/Kconfig
kernel/trace/trace.h
Merge reason: resolve the conflicts, plus adopt to the new
ring-buffer APIs.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/kmod.c')
-rw-r--r-- | kernel/kmod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index 7e95bedb2bfc..a92280870e30 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/unistd.h> | 24 | #include <linux/unistd.h> |
25 | #include <linux/kmod.h> | 25 | #include <linux/kmod.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <linux/mnt_namespace.h> | ||
28 | #include <linux/completion.h> | 27 | #include <linux/completion.h> |
29 | #include <linux/file.h> | 28 | #include <linux/file.h> |
30 | #include <linux/fdtable.h> | 29 | #include <linux/fdtable.h> |
@@ -38,6 +37,8 @@ | |||
38 | #include <linux/suspend.h> | 37 | #include <linux/suspend.h> |
39 | #include <asm/uaccess.h> | 38 | #include <asm/uaccess.h> |
40 | 39 | ||
40 | #include <trace/events/module.h> | ||
41 | |||
41 | extern int max_threads; | 42 | extern int max_threads; |
42 | 43 | ||
43 | static struct workqueue_struct *khelper_wq; | 44 | static struct workqueue_struct *khelper_wq; |
@@ -109,6 +110,8 @@ int __request_module(bool wait, const char *fmt, ...) | |||
109 | return -ENOMEM; | 110 | return -ENOMEM; |
110 | } | 111 | } |
111 | 112 | ||
113 | trace_module_request(module_name, wait, _RET_IP_); | ||
114 | |||
112 | ret = call_usermodehelper(modprobe_path, argv, envp, | 115 | ret = call_usermodehelper(modprobe_path, argv, envp, |
113 | wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); | 116 | wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); |
114 | atomic_dec(&kmod_concurrent); | 117 | atomic_dec(&kmod_concurrent); |