It eats some space.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
#CC = /opt/intel/cce/9.1.045/bin/icc
CC = gcc
-DEBUGFLAGS = -D_FORTIFY_SOURCE=2
+DEBUGFLAGS = -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG
OPTFLAGS= -O2 -g $(EXTFLAGS)
CFLAGS = -Wwrite-strings -Wall -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(DEBUGFLAGS) -rdynamic
PROGS = fio
FD_DEBUG_MAX,
};
+#ifdef FIO_INC_DEBUG
struct debug_level {
const char *name;
unsigned long shift;
extern struct debug_level debug_levels[];
extern unsigned long fio_debug;
+
#define dprint(type, str, args...) \
do { \
assert(type < FD_DEBUG_MAX); \
dprint(FD_IO, "/%s", f->file_name);
dprint(FD_IO, "\n");
}
+#else
+#define dprint(type, str, args...)
+#define dprint_io_u(io_u, p)
+#endif
#endif
printf("\t \tMay be \"always\", \"never\" or \"auto\"\n");
}
+#ifdef FIO_INC_DEBUG
struct debug_level debug_levels[] = {
{ .name = "process", .shift = FD_PROCESS, },
{ .name = "file", .shift = FD_FILE, },
log_err("fio: debug mask %s not found\n", opt);
}
}
+#else
+static void set_debug(const char *string)
+{
+ log_err("fio: debug tracing not included in build\n");
+}
+#endif
static int parse_cmd_line(int argc, char *argv[])
{