diff options
Diffstat (limited to 'kernel/kmod.c')
-rw-r--r-- | kernel/kmod.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index 385c31a1bdb..a92280870e3 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -37,6 +37,8 @@ | |||
37 | #include <linux/suspend.h> | 37 | #include <linux/suspend.h> |
38 | #include <asm/uaccess.h> | 38 | #include <asm/uaccess.h> |
39 | 39 | ||
40 | #include <trace/events/module.h> | ||
41 | |||
40 | extern int max_threads; | 42 | extern int max_threads; |
41 | 43 | ||
42 | static struct workqueue_struct *khelper_wq; | 44 | static struct workqueue_struct *khelper_wq; |
@@ -108,6 +110,8 @@ int __request_module(bool wait, const char *fmt, ...) | |||
108 | return -ENOMEM; | 110 | return -ENOMEM; |
109 | } | 111 | } |
110 | 112 | ||
113 | trace_module_request(module_name, wait, _RET_IP_); | ||
114 | |||
111 | ret = call_usermodehelper(modprobe_path, argv, envp, | 115 | ret = call_usermodehelper(modprobe_path, argv, envp, |
112 | wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); | 116 | wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); |
113 | atomic_dec(&kmod_concurrent); | 117 | atomic_dec(&kmod_concurrent); |