]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: when calling all modules do not forget kernel
authorKris Van Hees <kris.van.hees@oracle.com>
Sat, 17 Dec 2016 23:08:44 +0000 (18:08 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Sat, 24 Dec 2016 06:27:05 +0000 (01:27 -0500)
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 <kris.van.hees@oracle.com>
dtrace/dtrace_util.c

index e558c6321fa1d6df692a954580cfd33ead98f347..c3ff4b6a0a7bdb83ac378d1a39fe81841fb26ab6 100644 (file)
@@ -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();