notifiers: add tracepoints to the notifiers infrastructure
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Tue, 14 Mar 2023 20:00:58 +0000 (17:00 -0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 8 Apr 2023 20:45:38 +0000 (13:45 -0700)
commitf4708a82dc45fbf08bd3c68fc3eb32397e9121a1
treed01dab55b1b2f387c2e383f8e658f6c057bab2f9
parent882c5b261f404ebdfe69dcc055bfffc39f80c5a6
notifiers: add tracepoints to the notifiers infrastructure

Currently there is no way to show the callback names for registered,
unregistered or executed notifiers. This is very useful for debug
purposes, hence add this functionality here in the form of notifiers'
tracepoints, one per operation.

[akpm@linux-foundation.org: coding-style cleanups]
Link: https://lkml.kernel.org/r/20230314200058.1326909-1-gpiccoli@igalia.com
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Michael Kelley <mikelley@microsoft.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Xiaoming Ni <nixiaoming@huawei.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: Guilherme G. Piccoli <gpiccoli@igalia.com>
Cc: Guilherme G. Piccoli <kernel@gpiccoli.net>
Cc: Petr Mladek <pmladek@suse.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/notifier.h [new file with mode: 0644]
kernel/notifier.c