mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-17 18:55:22 +00:00

Add the container "rtapp" which is the monitor collection for detecting problems with real-time applications. The monitors will be added in the follow-up commits. Cc: John Ogness <john.ogness@linutronix.de> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/fb18b87631d386271de00959d8d4826f23fcd1cd.1752088709.git.namcao@linutronix.de Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
34 lines
761 B
C
34 lines
761 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/init.h>
|
|
#include <linux/rv.h>
|
|
|
|
#define MODULE_NAME "rtapp"
|
|
|
|
#include "rtapp.h"
|
|
|
|
struct rv_monitor rv_rtapp;
|
|
|
|
struct rv_monitor rv_rtapp = {
|
|
.name = "rtapp",
|
|
.description = "Collection of monitors for detecting problems with real-time applications",
|
|
};
|
|
|
|
static int __init register_rtapp(void)
|
|
{
|
|
return rv_register_monitor(&rv_rtapp, NULL);
|
|
}
|
|
|
|
static void __exit unregister_rtapp(void)
|
|
{
|
|
rv_unregister_monitor(&rv_rtapp);
|
|
}
|
|
|
|
module_init(register_rtapp);
|
|
module_exit(unregister_rtapp);
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Nam Cao <namcao@linutronix.de>");
|
|
MODULE_DESCRIPTION("Collection of monitors for detecting problems with real-time applications");
|