Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
debug.h File Reference
#include <linux/sched.h>

Go to the source code of this file.

Macros

#define CONFIG_JFFS2_FS_DEBUG   0
 
#define JFFS2_DBG_SANITY_CHECKS
 
#define D1(x)
 
#define D2(x)
 
#define jffs2_dbg(level, fmt,...)
 
#define JFFS2_DBG   KERN_DEBUG
 
#define JFFS2_DBG_PREFIX   "[JFFS2 DBG]"
 
#define JFFS2_DBG_MSG_PREFIX   JFFS2_DBG JFFS2_DBG_PREFIX
 
#define JFFS2_ERROR(fmt,...)
 
#define JFFS2_WARNING(fmt,...)
 
#define JFFS2_NOTICE(fmt,...)
 
#define JFFS2_DEBUG(fmt,...)
 
#define dbg_readinode(fmt,...)
 
#define dbg_readinode2(fmt,...)
 
#define dbg_fragtree(fmt,...)
 
#define dbg_fragtree2(fmt,...)
 
#define dbg_dentlist(fmt,...)
 
#define dbg_noderef(fmt,...)
 
#define dbg_inocache(fmt,...)
 
#define dbg_summary(fmt,...)
 
#define dbg_fsbuild(fmt,...)
 
#define dbg_memalloc(fmt,...)
 
#define dbg_xattr(fmt,...)
 
#define jffs2_dbg_fragtree_paranoia_check(f)
 
#define jffs2_dbg_fragtree_paranoia_check_nolock(f)
 
#define jffs2_dbg_acct_paranoia_check(c, jeb)
 
#define jffs2_dbg_acct_paranoia_check_nolock(c, jeb)
 
#define jffs2_dbg_prewrite_paranoia_check(c, ofs, len)
 
#define jffs2_dbg_dump_jeb(c, jeb)
 
#define jffs2_dbg_dump_jeb_nolock(jeb)
 
#define jffs2_dbg_dump_block_lists(c)
 
#define jffs2_dbg_dump_block_lists_nolock(c)
 
#define jffs2_dbg_dump_fragtree(f)
 
#define jffs2_dbg_dump_fragtree_nolock(f)
 
#define jffs2_dbg_dump_buffer(buf, len, offs)
 
#define jffs2_dbg_dump_node(c, ofs)
 
#define jffs2_dbg_acct_sanity_check(c, jeb)   __jffs2_dbg_acct_sanity_check(c, jeb)
 
#define jffs2_dbg_acct_sanity_check_nolock(c, jeb)   __jffs2_dbg_acct_sanity_check_nolock(c, jeb)
 

Functions

void __jffs2_dbg_acct_sanity_check_nolock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_acct_sanity_check (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_fragtree_paranoia_check (struct jffs2_inode_info *f)
 
void __jffs2_dbg_fragtree_paranoia_check_nolock (struct jffs2_inode_info *f)
 
void __jffs2_dbg_acct_paranoia_check (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_acct_paranoia_check_nolock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_prewrite_paranoia_check (struct jffs2_sb_info *c, uint32_t ofs, int len)
 
void __jffs2_dbg_dump_jeb (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_dump_jeb_nolock (struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_dump_block_lists (struct jffs2_sb_info *c)
 
void __jffs2_dbg_dump_block_lists_nolock (struct jffs2_sb_info *c)
 
void __jffs2_dbg_dump_node_refs (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_dump_node_refs_nolock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb)
 
void __jffs2_dbg_dump_fragtree (struct jffs2_inode_info *f)
 
void __jffs2_dbg_dump_fragtree_nolock (struct jffs2_inode_info *f)
 
void __jffs2_dbg_dump_buffer (unsigned char *buf, int len, uint32_t offs)
 
void __jffs2_dbg_dump_node (struct jffs2_sb_info *c, uint32_t ofs)
 

Macro Definition Documentation

#define CONFIG_JFFS2_FS_DEBUG   0

Definition at line 19 of file debug.h.

#define D1 (   x)

Definition at line 57 of file debug.h.

#define D2 (   x)

Definition at line 63 of file debug.h.

#define dbg_dentlist (   fmt,
  ... 
)

Definition at line 126 of file debug.h.

#define dbg_fragtree (   fmt,
  ... 
)

Definition at line 114 of file debug.h.

#define dbg_fragtree2 (   fmt,
  ... 
)

Definition at line 119 of file debug.h.

#define dbg_fsbuild (   fmt,
  ... 
)

Definition at line 154 of file debug.h.

#define dbg_inocache (   fmt,
  ... 
)

Definition at line 140 of file debug.h.

#define dbg_memalloc (   fmt,
  ... 
)

Definition at line 161 of file debug.h.

#define dbg_noderef (   fmt,
  ... 
)

Definition at line 133 of file debug.h.

#define dbg_readinode (   fmt,
  ... 
)

Definition at line 102 of file debug.h.

#define dbg_readinode2 (   fmt,
  ... 
)

Definition at line 107 of file debug.h.

#define dbg_summary (   fmt,
  ... 
)

Definition at line 147 of file debug.h.

#define dbg_xattr (   fmt,
  ... 
)

Definition at line 168 of file debug.h.

#define jffs2_dbg (   level,
  fmt,
  ... 
)
Value:
do { \
pr_debug(fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 66 of file debug.h.

#define JFFS2_DBG   KERN_DEBUG

Definition at line 73 of file debug.h.

#define jffs2_dbg_acct_paranoia_check (   c,
  jeb 
)

Definition at line 232 of file debug.h.

#define jffs2_dbg_acct_paranoia_check_nolock (   c,
  jeb 
)

Definition at line 233 of file debug.h.

#define jffs2_dbg_acct_sanity_check (   c,
  jeb 
)    __jffs2_dbg_acct_sanity_check(c, jeb)

Definition at line 266 of file debug.h.

#define jffs2_dbg_acct_sanity_check_nolock (   c,
  jeb 
)    __jffs2_dbg_acct_sanity_check_nolock(c, jeb)

Definition at line 268 of file debug.h.

#define jffs2_dbg_dump_block_lists (   c)

Definition at line 257 of file debug.h.

#define jffs2_dbg_dump_block_lists_nolock (   c)

Definition at line 258 of file debug.h.

#define jffs2_dbg_dump_buffer (   buf,
  len,
  offs 
)

Definition at line 261 of file debug.h.

#define jffs2_dbg_dump_fragtree (   f)

Definition at line 259 of file debug.h.

#define jffs2_dbg_dump_fragtree_nolock (   f)

Definition at line 260 of file debug.h.

#define jffs2_dbg_dump_jeb (   c,
  jeb 
)

Definition at line 255 of file debug.h.

#define jffs2_dbg_dump_jeb_nolock (   jeb)

Definition at line 256 of file debug.h.

#define jffs2_dbg_dump_node (   c,
  ofs 
)

Definition at line 262 of file debug.h.

#define jffs2_dbg_fragtree_paranoia_check (   f)

Definition at line 230 of file debug.h.

#define jffs2_dbg_fragtree_paranoia_check_nolock (   f)

Definition at line 231 of file debug.h.

#define JFFS2_DBG_MSG_PREFIX   JFFS2_DBG JFFS2_DBG_PREFIX

Definition at line 75 of file debug.h.

#define JFFS2_DBG_PREFIX   "[JFFS2 DBG]"

Definition at line 74 of file debug.h.

#define jffs2_dbg_prewrite_paranoia_check (   c,
  ofs,
  len 
)

Definition at line 234 of file debug.h.

#define JFFS2_DBG_SANITY_CHECKS

Definition at line 47 of file debug.h.

#define JFFS2_DEBUG (   fmt,
  ... 
)
Value:
printk(KERN_DEBUG "[JFFS2 DBG] (%d) %s: " fmt, \
task_pid_nr(current), __func__, ##__VA_ARGS__)

Definition at line 90 of file debug.h.

#define JFFS2_ERROR (   fmt,
  ... 
)
Value:
pr_err("error: (%d) %s: " fmt, \
task_pid_nr(current), __func__, ##__VA_ARGS__)

Definition at line 78 of file debug.h.

#define JFFS2_NOTICE (   fmt,
  ... 
)
Value:
pr_notice("notice: (%d) %s: " fmt, \
task_pid_nr(current), __func__, ##__VA_ARGS__)

Definition at line 86 of file debug.h.

#define JFFS2_WARNING (   fmt,
  ... 
)
Value:
pr_warn("warning: (%d) %s: " fmt, \
task_pid_nr(current), __func__, ##__VA_ARGS__)

Definition at line 82 of file debug.h.

Function Documentation

void __jffs2_dbg_acct_paranoia_check ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)
void __jffs2_dbg_acct_paranoia_check_nolock ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)
void __jffs2_dbg_acct_sanity_check ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)

Definition at line 52 of file debug.c.

void __jffs2_dbg_acct_sanity_check_nolock ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)

Definition at line 28 of file debug.c.

void __jffs2_dbg_dump_block_lists ( struct jffs2_sb_info c)
void __jffs2_dbg_dump_block_lists_nolock ( struct jffs2_sb_info c)
void __jffs2_dbg_dump_buffer ( unsigned char buf,
int  len,
uint32_t  offs 
)
void __jffs2_dbg_dump_fragtree ( struct jffs2_inode_info f)
void __jffs2_dbg_dump_fragtree_nolock ( struct jffs2_inode_info f)
void __jffs2_dbg_dump_jeb ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)
void __jffs2_dbg_dump_jeb_nolock ( struct jffs2_eraseblock jeb)
void __jffs2_dbg_dump_node ( struct jffs2_sb_info c,
uint32_t  ofs 
)
void __jffs2_dbg_dump_node_refs ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)
void __jffs2_dbg_dump_node_refs_nolock ( struct jffs2_sb_info c,
struct jffs2_eraseblock jeb 
)
void __jffs2_dbg_fragtree_paranoia_check ( struct jffs2_inode_info f)
void __jffs2_dbg_fragtree_paranoia_check_nolock ( struct jffs2_inode_info f)
void __jffs2_dbg_prewrite_paranoia_check ( struct jffs2_sb_info c,
uint32_t  ofs,
int  len 
)