]> sourceware.org Git - systemtap.git/commitdiff
runtime: stp_tracepoint_module_notifier rc change
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 24 Jun 2019 21:05:53 +0000 (17:05 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 27 Jun 2019 19:16:43 +0000 (15:16 -0400)
Some LKML traffic indicates NOTIFY_OK may be better than NOTIFY_DONE (0)
to return in a routine success case.  Following suit for this site.
OTOH leaving another instance in runtime/linux/symbols.c alone for now.

https://lkml.org/lkml/2019/6/24/880

Reported-By: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
runtime/linux/stp_tracepoint.c

index a98d8a1b9e0fec7a7ffa774c2cde82f6a1779e0b..6a7a30e5697df69d7c0053d69e58481de26a55d0 100644 (file)
@@ -309,7 +309,7 @@ int stp_tracepoint_coming(struct tp_module *tp_mod)
                }
        }
        mutex_unlock(&stp_tracepoint_mutex);
-       return 0;
+       return NOTIFY_OK; /* may be more appropriate than NOTIFY_DONE=0; https://lkml.org/lkml/2019/6/24/880 */
 }
 
 static
This page took 0.02923 seconds and 5 git commands to generate.