mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 09:02:17 +00:00
7deedfdaec
An enabled user-specified exception event that does not clear quickly will repeatedly cause the handler to run. That could unduly disturb the driver behaviour being tested or debugged. To prevent that add debugfs file exception_event_rate_limit_ms. When a exception event happens, it is disabled, and then after a period of time (default 20ms) the exception event is enabled again. Note that if the driver also has that exception event enabled, it will not be disabled. Link: https://lore.kernel.org/r/20210209062437.6954-5-adrian.hunter@intel.com Acked-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
25 lines
734 B
C
25 lines
734 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (C) 2020 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __UFS_DEBUGFS_H__
|
|
#define __UFS_DEBUGFS_H__
|
|
|
|
struct ufs_hba;
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void __init ufs_debugfs_init(void);
|
|
void __exit ufs_debugfs_exit(void);
|
|
void ufs_debugfs_hba_init(struct ufs_hba *hba);
|
|
void ufs_debugfs_hba_exit(struct ufs_hba *hba);
|
|
void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status);
|
|
#else
|
|
static inline void ufs_debugfs_init(void) {}
|
|
static inline void ufs_debugfs_exit(void) {}
|
|
static inline void ufs_debugfs_hba_init(struct ufs_hba *hba) {}
|
|
static inline void ufs_debugfs_hba_exit(struct ufs_hba *hba) {}
|
|
static inline void ufs_debugfs_exception_event(struct ufs_hba *hba, u16 status) {}
|
|
#endif
|
|
|
|
#endif
|