linux/kernel/backtracetest.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Simple stack backtrace regression test module
 *
 * (C) Copyright 2008 Intel Corporation
 * Author: Arjan van de Ven <[email protected]>
 */

#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/stacktrace.h>

static void backtrace_test_normal(void)
{}

static void backtrace_test_bh_workfn(struct work_struct *work)
{}

static DECLARE_WORK(backtrace_bh_work, &backtrace_test_bh_workfn);

static void backtrace_test_bh(void)
{}

#ifdef CONFIG_STACKTRACE
static void backtrace_test_saved(void)
{}
#else
static void backtrace_test_saved(void)
{
	pr_info("Saved backtrace test skipped.\n");
}
#endif

static int backtrace_regression_test(void)
{}

static void exitf(void)
{}

module_init();
module_exit(exitf);
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();