#ifndef __UBIFS_DEBUG_H__
#define __UBIFS_DEBUG_H__
dbg_leaf_callback;
dbg_znode_callback;
#define UBIFS_DFS_DIR_NAME …
#define UBIFS_DFS_DIR_LEN …
struct ubifs_debug_info { … };
struct ubifs_global_debug_info { … };
void ubifs_assert_failed(struct ubifs_info *c, const char *expr,
const char *file, int line);
#define ubifs_assert(c, expr) …
#define ubifs_assert_cmt_locked(c) …
#define ubifs_dbg_msg(type, fmt, ...) …
#define DBG_KEY_BUF_LEN …
#define ubifs_dbg_msg_key(type, key, fmt, ...) …
#define dbg_gen(fmt, ...) …
#define dbg_jnl(fmt, ...) …
#define dbg_jnlk(key, fmt, ...) …
#define dbg_tnc(fmt, ...) …
#define dbg_tnck(key, fmt, ...) …
#define dbg_lp(fmt, ...) …
#define dbg_find(fmt, ...) …
#define dbg_mnt(fmt, ...) …
#define dbg_mntk(key, fmt, ...) …
#define dbg_io(fmt, ...) …
#define dbg_cmt(fmt, ...) …
#define dbg_budg(fmt, ...) …
#define dbg_log(fmt, ...) …
#define dbg_gc(fmt, ...) …
#define dbg_scan(fmt, ...) …
#define dbg_rcvry(fmt, ...) …
extern struct ubifs_global_debug_info ubifs_dbg;
static inline int dbg_is_chk_gen(const struct ubifs_info *c)
{ … }
static inline int dbg_is_chk_index(const struct ubifs_info *c)
{ … }
static inline int dbg_is_chk_orph(const struct ubifs_info *c)
{ … }
static inline int dbg_is_chk_lprops(const struct ubifs_info *c)
{ … }
static inline int dbg_is_chk_fs(const struct ubifs_info *c)
{ … }
static inline int dbg_is_tst_rcvry(const struct ubifs_info *c)
{ … }
static inline int dbg_is_power_cut(const struct ubifs_info *c)
{ … }
int ubifs_debugging_init(struct ubifs_info *c);
void ubifs_debugging_exit(struct ubifs_info *c);
const char *dbg_ntype(int type);
const char *dbg_cstate(int cmt_state);
const char *dbg_jhead(int jhead);
const char *dbg_get_key_dump(const struct ubifs_info *c,
const union ubifs_key *key);
const char *dbg_snprintf_key(const struct ubifs_info *c,
const union ubifs_key *key, char *buffer, int len);
void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode);
void ubifs_dump_node(const struct ubifs_info *c, const void *node,
int node_len);
void ubifs_dump_budget_req(const struct ubifs_budget_req *req);
void ubifs_dump_lstats(const struct ubifs_lp_stats *lst);
void ubifs_dump_budg(struct ubifs_info *c, const struct ubifs_budg_info *bi);
void ubifs_dump_lprop(const struct ubifs_info *c,
const struct ubifs_lprops *lp);
void ubifs_dump_lprops(struct ubifs_info *c);
void ubifs_dump_lpt_info(struct ubifs_info *c);
void ubifs_dump_leb(const struct ubifs_info *c, int lnum);
void ubifs_dump_znode(const struct ubifs_info *c,
const struct ubifs_znode *znode);
void ubifs_dump_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap,
int cat);
void ubifs_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode,
struct ubifs_nnode *parent, int iip);
void ubifs_dump_tnc(struct ubifs_info *c);
void ubifs_dump_index(struct ubifs_info *c);
void ubifs_dump_lpt_lebs(const struct ubifs_info *c);
int dbg_walk_index(struct ubifs_info *c, dbg_leaf_callback leaf_cb,
dbg_znode_callback znode_cb, void *priv);
void dbg_save_space_info(struct ubifs_info *c);
int dbg_check_space_info(struct ubifs_info *c);
int dbg_check_lprops(struct ubifs_info *c);
int dbg_old_index_check_init(struct ubifs_info *c, struct ubifs_zbranch *zroot);
int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot);
int dbg_check_cats(struct ubifs_info *c);
int dbg_check_ltab(struct ubifs_info *c);
int dbg_chk_lpt_free_spc(struct ubifs_info *c);
int dbg_chk_lpt_sz(struct ubifs_info *c, int action, int len);
int dbg_check_synced_i_size(const struct ubifs_info *c, struct inode *inode);
int dbg_check_dir(struct ubifs_info *c, const struct inode *dir);
int dbg_check_tnc(struct ubifs_info *c, int extra);
int dbg_check_idx_size(struct ubifs_info *c, long long idx_size);
int dbg_check_filesystem(struct ubifs_info *c);
void dbg_check_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, int cat,
int add_pos);
int dbg_check_lpt_nodes(struct ubifs_info *c, struct ubifs_cnode *cnode,
int row, int col);
int dbg_check_inode_size(struct ubifs_info *c, const struct inode *inode,
loff_t size);
int dbg_check_data_nodes_order(struct ubifs_info *c, struct list_head *head);
int dbg_check_nondata_nodes_order(struct ubifs_info *c, struct list_head *head);
int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs,
int len);
int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len);
int dbg_leb_unmap(struct ubifs_info *c, int lnum);
int dbg_leb_map(struct ubifs_info *c, int lnum);
void dbg_debugfs_init(void);
void dbg_debugfs_exit(void);
void dbg_debugfs_init_fs(struct ubifs_info *c);
void dbg_debugfs_exit_fs(struct ubifs_info *c);
#endif