debug


Defines

#define ASSERT_MAX_SIZE_MB   60000ULL
#define ASSERT_PAGE_INDEX(index, OP)
#define ASSERT_FILE_OFFSET(offset, OP)

Functions

void dump_lniobuf (struct niobuf_local *lnb)
int dump_req (struct ptlrpc_request *req)
void dump_lsm (int level, struct lov_stripe_md *lsm)
int block_debug_setup (void *addr, int len, __u64 off, __u64 id)
int block_debug_check (char *who, void *addr, int len, __u64 off, __u64 id)

Define Documentation

#define ASSERT_FILE_OFFSET ( offset,
OP   ) 

Value:

do { if (offset > ASSERT_MAX_SIZE_MB << 20) {                           \
        CERROR("bad file offset %Lu > %Lu\n", offset,                   \
               ASSERT_MAX_SIZE_MB << 20);                               \
        libcfs_debug = ~0UL;                                            \
        OP;                                                             \
}} while(0)

#define ASSERT_PAGE_INDEX ( index,
OP   ) 

Value:

do { if (index > ASSERT_MAX_SIZE_MB << (20 - CFS_PAGE_SHIFT)) {         \
        CERROR("bad page index %lu > %Lu\n", index,                     \
               ASSERT_MAX_SIZE_MB << (20 - CFS_PAGE_SHIFT));            \
        libcfs_debug = ~0UL;                                            \
        OP;                                                             \
}} while(0)


Generated on Mon Apr 12 04:18:21 2010 for Lustre 1.10.0.40-0-g9a80ff7 by doxygen 1.4.7

Contact | About Sun | News | Employment | Privacy | Terms of Use | Trademarks | (C) 2008 Sun Microsystems, Inc.