1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #ifndef FTL_DEBUG_H 7 #define FTL_DEBUG_H 8 9 #include "ftl_internal.h" 10 #include "ftl_band.h" 11 #include "ftl_core.h" 12 13 typedef void (*ftl_band_validate_md_cb)(struct ftl_band *band, bool valid); 14 15 #if defined(DEBUG) 16 void ftl_dev_dump_bands(struct spdk_ftl_dev *dev); 17 #else 18 static inline void 19 ftl_dev_dump_bands(struct spdk_ftl_dev *dev) 20 { 21 } 22 #endif 23 24 void ftl_dev_dump_stats(const struct spdk_ftl_dev *dev); 25 26 #endif /* FTL_DEBUG_H */ 27