// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2021 Zhi Tongze * Author: Zhi Tongze * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include #include extern bool segv_debug_enabled; static int __init segv_debug_init(void) { struct dentry *segvdbg; if (!sw64_debugfs_dir) return -ENODEV; segvdbg = debugfs_create_bool("segv_debug", 0644, sw64_debugfs_dir, &segv_debug_enabled); if (!segvdbg) return -ENOMEM; return 0; } late_initcall(segv_debug_init);