Lines Matching +full:key +full:- +full:enable

1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright (C) 2006-2008 Nokia Corporation.
29 * ubifs_debug_info - per-FS debugging information.
30 * @old_zroot: old index root - used by 'dbg_check_old_index()'
31 * @old_zroot_level: old index root level - used by 'dbg_check_old_index()'
32 * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
34 * @pc_happened: non-zero if an emulated power cut happened
45 * @new_ihead_lnum: used by debugging to check @c->ihead_lnum
46 * @new_ihead_offs: used by debugging to check @c->ihead_offs
51 * @saved_idx_gc_cnt: saved value of @c->idx_gc_cnt
60 * @dfs_dir_name: name of debugfs directory containing this file-system's files
61 * @dfs_dir: direntry object of the file-system debugfs directory
65 * @dfs_chk_gen: debugfs knob to enable UBIFS general extra checks
66 * @dfs_chk_index: debugfs knob to enable UBIFS index extra checks
67 * @dfs_chk_orph: debugfs knob to enable UBIFS orphans extra checks
68 * @dfs_chk_lprops: debugfs knob to enable UBIFS LEP properties extra checks
69 * @dfs_chk_fs: debugfs knob to enable UBIFS contents extra checks
70 * @dfs_tst_rcvry: debugfs knob to enable UBIFS recovery testing
72 * re-mounting to R/O mode because it does not flush any buffers
73 * and UBIFS just starts returning -EROFS on all write
122 * ubifs_global_debug_info - global (not per-FS) UBIFS debugging information.
151 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \
152 up_write(&(c)->commit_sem); \
159 pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
163 #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ argument
165 pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \
167 dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \
174 #define dbg_jnlk(key, fmt, ...) \ argument
175 ubifs_dbg_msg_key("jnl", key, fmt, ##__VA_ARGS__)
178 #define dbg_tnck(key, fmt, ...) \ argument
179 ubifs_dbg_msg_key("tnc", key, fmt, ##__VA_ARGS__)
186 #define dbg_mntk(key, fmt, ...) \ argument
187 ubifs_dbg_msg_key("mnt", key, fmt, ##__VA_ARGS__)
207 return !!(ubifs_dbg.chk_gen || c->dbg->chk_gen); in dbg_is_chk_gen()
211 return !!(ubifs_dbg.chk_index || c->dbg->chk_index); in dbg_is_chk_index()
215 return !!(ubifs_dbg.chk_orph || c->dbg->chk_orph); in dbg_is_chk_orph()
219 return !!(ubifs_dbg.chk_lprops || c->dbg->chk_lprops); in dbg_is_chk_lprops()
223 return !!(ubifs_dbg.chk_fs || c->dbg->chk_fs); in dbg_is_chk_fs()
227 return !!(ubifs_dbg.tst_rcvry || c->dbg->tst_rcvry); in dbg_is_tst_rcvry()
231 return !!c->dbg->pc_happened; in dbg_is_power_cut()
242 const union ubifs_key *key);
244 const union ubifs_key *key, char *buffer, int len);
299 /* Debugfs-related stuff */