From 3287f6473aed807fadb14de9e2ccebf21cbb57cd Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Sat, 17 Dec 2016 18:08:44 -0500 Subject: [PATCH] dtrace: when calling all modules do not forget kernel For DTrace, the kernel is represented as a pseudo-module. When a loop is made over all loaded modules in ordder to call a function for each one of them, we need to also call that function for the kernel pseudo-module. Signed-off-by: Kris Van Hees --- dtrace/dtrace_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dtrace/dtrace_util.c b/dtrace/dtrace_util.c index e558c6321fa1..c3ff4b6a0a7b 100644 --- a/dtrace/dtrace_util.c +++ b/dtrace/dtrace_util.c @@ -192,6 +192,7 @@ void dtrace_for_each_module(for_each_module_fn *fn, void *arg) * must also identify and skip the list header because that is not a * valid module at all. */ + fn(arg, dtrace_kmod); fn(arg, THIS_MODULE); rcu_read_lock(); -- 2.50.1