linux/kernel/trace/rv/monitors/pagefault/pagefault_kunit.h
Gabriele Monaco 51f3fe704a rv: Add KUnit tests for some LTL monitors
Validate the functionality of LTL monitors by injecting events in a
controlled environment (KUnit) and expecting reactions, just like it is
done in DA monitors.

Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260723074534.43521-15-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
2026-07-31 16:27:46 +02:00

25 lines
707 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Automatically generated by rvgen kunit.
* May need manual intervention for function prototypes that couldn't be
* found (e.g. are in another file) or variables to be exported.
*/
#ifndef __PAGEFAULT_KUNIT_H
#define __PAGEFAULT_KUNIT_H
#if IS_ENABLED(CONFIG_RV_MONITORS_KUNIT_TEST)
#include <linux/rv.h>
#include <rv/kunit.h>
extern const struct rv_pagefault_ops {
struct rv_kunit_mon mon;
void (*handle_page_fault)(void *data, unsigned long address, struct pt_regs *regs,
unsigned long error_code);
void (*handle_task_newtask)(void *data, struct task_struct *task, u64 flags);
} rv_pagefault_ops;
#endif
#endif /* __PAGEFAULT_KUNIT_H */