From: Kris Van Hees Date: Sat, 17 Dec 2016 23:08:44 +0000 (-0500) Subject: dtrace: when calling all modules do not forget kernel X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~32 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3287f6473aed807fadb14de9e2ccebf21cbb57cd;p=users%2Fjedix%2Flinux-maple.git 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 --- 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();