extern unsigned int libcfs_debug;
extern unsigned int libcfs_printk;
extern unsigned int libcfs_console_ratelimit;
+extern unsigned int libcfs_watchdog_ratelimit;
extern cfs_duration_t libcfs_console_max_delay;
extern cfs_duration_t libcfs_console_min_delay;
extern unsigned int libcfs_console_backoff;
extern unsigned int libcfs_debug_binary;
extern char debug_file_path_arr[1024];
+#ifdef __KERNEL__
+extern char *debug_file_path;
+#endif
int libcfs_debug_mask2str(char *str, int size, int mask, int is_subsys);
int libcfs_debug_str2mask(int *mask, const char *str, int is_subsys);
#define S_ECHO 0x00008000
#define S_LDLM 0x00010000
#define S_LOV 0x00020000
-/* unused */
+#define S_LQUOTA 0x00040000
/* unused */
/* unused */
/* unused */
#endif /* !CDEBUG_ENTRY_EXIT */
+#define RETURN_EXIT \
+do { \
+ EXIT_NESTING; \
+ return; \
+} while (0)
struct libcfs_debug_msg_data {
cfs_debug_limit_state_t *msg_cdls;
if (cdebug_show(mask, DEBUG_SUBSYSTEM)) \
libcfs_debug_vmsg(cdls, DEBUG_SUBSYSTEM, (mask), \
(file), (func), (line), fmt, args); \
-} while(0);
+} while(0)
#define cdebug(cdls, mask, file, func, line, fmt, ...) do { \
CHECK_STACK(); \
if (cdebug_show(mask, DEBUG_SUBSYSTEM)) \
libcfs_debug_msg(cdls, DEBUG_SUBSYSTEM, (mask), \
(file), (func), (line), fmt, ## __VA_ARGS__);\
-} while(0);
+} while(0)
extern void libcfs_assertion_failed(const char *expr, const char *file,
const char *fn, const int line);