X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=2daeb2a63067ab4d85df59c9228cf4ae3ec2584e;hb=ee56ad500f6692381e131cc37299d23fa910a24a;hp=09bf6a203c7c4b72450d60c27b34e93d174fbac6;hpb=e28218f3017e5eb156d3a4a6e7b33651dc022cea;p=fio.git diff --git a/fio.h b/fio.h index 09bf6a20..2daeb2a6 100644 --- a/fio.h +++ b/fio.h @@ -972,4 +972,19 @@ static inline void clear_error(struct thread_data *td) td->verror[0] = '\0'; } +enum { + FD_PROCESS = 1 << 0, + FD_FILE = 1 << 1, + FD_IO = 1 << 2, + FD_MEM = 1 << 3, +}; + +extern unsigned long fio_debug; +#define dprint(type, str, args...) \ + do { \ + if (((type) & fio_debug) == 0) \ + break; \ + printf(str, ##args); \ + } while (0) + #endif