3 * (C) COPYRIGHT 2016 ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
19 * Header file for register access history support via debugfs
21 * This interface is made available via /sys/kernel/debug/mali#/regs_history*.
24 * - regs_history_enabled: whether recording of register accesses is enabled.
25 * Write 'y' to enable, 'n' to disable.
26 * - regs_history_size: size of the register history buffer, must be > 0
27 * - regs_history: return the information about last accesses to the registers.
30 #ifndef _KBASE_REGS_HISTORY_DEBUGFS_H
31 #define _KBASE_REGS_HISTORY_DEBUGFS_H
35 #if defined(CONFIG_DEBUG_FS) && !defined(CONFIG_MALI_NO_MALI)
38 * kbasep_regs_history_debugfs_init - add debugfs entries for register history
40 * @kbdev: Pointer to kbase_device containing the register history
42 void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev);
44 #else /* CONFIG_DEBUG_FS */
46 #define kbasep_regs_history_debugfs_init CSTD_NOP
48 #endif /* CONFIG_DEBUG_FS */
50 #endif /*_KBASE_REGS_HISTORY_DEBUGFS_H*/