diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-10-31 11:32:30 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-12-03 06:14:34 -0500 |
commit | 2ba5f7ae8165b3f575dd3a7d8bb18f421fab8273 (patch) | |
tree | c2916fd6398b0a380eed9ac3cd9e59c92ae8cbd5 /fs/ubifs/debug.h | |
parent | 787845bdeadd368eedeace92d5bf53f5aa1450ba (diff) |
UBIFS: introduce LPT dump function
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/debug.h')
-rw-r--r-- | fs/ubifs/debug.h | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h index a6b70f8aac9c..9820d6999f7e 100644 --- a/fs/ubifs/debug.h +++ b/fs/ubifs/debug.h | |||
@@ -270,6 +270,8 @@ const char *dbg_get_key_dump(const struct ubifs_info *c, | |||
270 | const union ubifs_key *key); | 270 | const union ubifs_key *key); |
271 | void dbg_dump_inode(const struct ubifs_info *c, const struct inode *inode); | 271 | void dbg_dump_inode(const struct ubifs_info *c, const struct inode *inode); |
272 | void dbg_dump_node(const struct ubifs_info *c, const void *node); | 272 | void dbg_dump_node(const struct ubifs_info *c, const void *node); |
273 | void dbg_dump_lpt_node(const struct ubifs_info *c, void *node, int lnum, | ||
274 | int offs); | ||
273 | void dbg_dump_budget_req(const struct ubifs_budget_req *req); | 275 | void dbg_dump_budget_req(const struct ubifs_budget_req *req); |
274 | void dbg_dump_lstats(const struct ubifs_lp_stats *lst); | 276 | void dbg_dump_lstats(const struct ubifs_lp_stats *lst); |
275 | void dbg_dump_budg(struct ubifs_info *c); | 277 | void dbg_dump_budg(struct ubifs_info *c); |
@@ -284,6 +286,7 @@ void dbg_dump_pnode(struct ubifs_info *c, struct ubifs_pnode *pnode, | |||
284 | struct ubifs_nnode *parent, int iip); | 286 | struct ubifs_nnode *parent, int iip); |
285 | void dbg_dump_tnc(struct ubifs_info *c); | 287 | void dbg_dump_tnc(struct ubifs_info *c); |
286 | void dbg_dump_index(struct ubifs_info *c); | 288 | void dbg_dump_index(struct ubifs_info *c); |
289 | void dbg_dump_lpt_lebs(const struct ubifs_info *c); | ||
287 | 290 | ||
288 | /* Checking helper functions */ | 291 | /* Checking helper functions */ |
289 | typedef int (*dbg_leaf_callback)(struct ubifs_info *c, | 292 | typedef int (*dbg_leaf_callback)(struct ubifs_info *c, |
@@ -411,26 +414,28 @@ void dbg_debugfs_exit_fs(struct ubifs_info *c); | |||
411 | #define DBGKEY(key) ((char *)(key)) | 414 | #define DBGKEY(key) ((char *)(key)) |
412 | #define DBGKEY1(key) ((char *)(key)) | 415 | #define DBGKEY1(key) ((char *)(key)) |
413 | 416 | ||
414 | #define ubifs_debugging_init(c) 0 | 417 | #define ubifs_debugging_init(c) 0 |
415 | #define ubifs_debugging_exit(c) ({}) | 418 | #define ubifs_debugging_exit(c) ({}) |
416 | 419 | ||
417 | #define dbg_ntype(type) "" | 420 | #define dbg_ntype(type) "" |
418 | #define dbg_cstate(cmt_state) "" | 421 | #define dbg_cstate(cmt_state) "" |
419 | #define dbg_get_key_dump(c, key) ({}) | 422 | #define dbg_get_key_dump(c, key) ({}) |
420 | #define dbg_dump_inode(c, inode) ({}) | 423 | #define dbg_dump_inode(c, inode) ({}) |
421 | #define dbg_dump_node(c, node) ({}) | 424 | #define dbg_dump_node(c, node) ({}) |
422 | #define dbg_dump_budget_req(req) ({}) | 425 | #define dbg_dump_lpt_node(c, node, lnum, offs) ({}) |
423 | #define dbg_dump_lstats(lst) ({}) | 426 | #define dbg_dump_budget_req(req) ({}) |
424 | #define dbg_dump_budg(c) ({}) | 427 | #define dbg_dump_lstats(lst) ({}) |
425 | #define dbg_dump_lprop(c, lp) ({}) | 428 | #define dbg_dump_budg(c) ({}) |
426 | #define dbg_dump_lprops(c) ({}) | 429 | #define dbg_dump_lprop(c, lp) ({}) |
427 | #define dbg_dump_lpt_info(c) ({}) | 430 | #define dbg_dump_lprops(c) ({}) |
428 | #define dbg_dump_leb(c, lnum) ({}) | 431 | #define dbg_dump_lpt_info(c) ({}) |
429 | #define dbg_dump_znode(c, znode) ({}) | 432 | #define dbg_dump_leb(c, lnum) ({}) |
430 | #define dbg_dump_heap(c, heap, cat) ({}) | 433 | #define dbg_dump_znode(c, znode) ({}) |
431 | #define dbg_dump_pnode(c, pnode, parent, iip) ({}) | 434 | #define dbg_dump_heap(c, heap, cat) ({}) |
432 | #define dbg_dump_tnc(c) ({}) | 435 | #define dbg_dump_pnode(c, pnode, parent, iip) ({}) |
433 | #define dbg_dump_index(c) ({}) | 436 | #define dbg_dump_tnc(c) ({}) |
437 | #define dbg_dump_index(c) ({}) | ||
438 | #define dbg_dump_lpt_lebs(c) ({}) | ||
434 | 439 | ||
435 | #define dbg_walk_index(c, leaf_cb, znode_cb, priv) 0 | 440 | #define dbg_walk_index(c, leaf_cb, znode_cb, priv) 0 |
436 | #define dbg_old_index_check_init(c, zroot) 0 | 441 | #define dbg_old_index_check_init(c, zroot) 0 |