: "memory");
}
-#include "arch-x86-common.h"
+#include "arch-x86-common.h" /* IWYU pragma: export */
#define FIO_ARCH (arch_x86)
: "memory");
}
-#include "arch-x86-common.h"
+#include "arch-x86-common.h" /* IWYU pragma: export */
#define FIO_ARCH (arch_x86_64)
#define ARCH_CPU_CLOCK_WRAPS
+/* IWYU pragma: begin_exports */
#if defined(__i386__)
#include "arch-x86.h"
#elif defined(__x86_64__)
#endif
#include "../lib/ffz.h"
+/* IWYU pragma: end_exports */
#ifndef ARCH_HAVE_INIT
static inline int arch_init(char *envp[])
*
*/
#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
-#include <limits.h>
#include <signal.h>
-#include <time.h>
-#include <locale.h>
#include <assert.h>
-#include <time.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <sys/ipc.h>
-#include <sys/mman.h>
#include <math.h>
#include "fio.h"
-#ifndef FIO_NO_HAVE_SHM_H
-#include <sys/shm.h>
-#endif
-#include "hash.h"
#include "smalloc.h"
#include "verify.h"
-#include "trim.h"
#include "diskutil.h"
#include "cgroup.h"
#include "profile.h"
*/
#include <stdio.h>
#include <stdlib.h>
-#include <sys/stat.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
-#include <dirent.h>
#include "flist.h"
#include "fio.h"
#include <string.h>
+#include "log.h"
#include "thread_options.h"
static void string_to_cpu(char **dst, const uint8_t *src)
#include <stdlib.h>
#include <mntent.h>
#include <sys/stat.h>
-#include <sys/types.h>
#include "fio.h"
#include "flist.h"
#include "cgroup.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <limits.h>
#include <errno.h>
#include <fcntl.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include "server.h"
#include "flist.h"
#include "hash.h"
-#include "verify.h"
+#include "verify-state.h"
static void handle_du(struct fio_client *client, struct fio_net_cmd *cmd);
static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd);
#ifndef CLIENT_H
#define CLIENT_H
-#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "stat.h"
struct fio_net_cmd;
-struct client_ops;
enum {
Client_created = 0,
typedef void (client_timed_out_op)(struct fio_client *);
typedef void (client_jobs_eta_op)(struct fio_client *client, struct jobs_eta *je);
+extern struct client_ops fio_client_ops;
+
struct client_ops {
client_cmd_op *text;
client_cmd_op *disk_util;
uint32_t client_type;
};
-extern struct client_ops fio_client_ops;
-
struct client_eta {
unsigned int pending;
struct jobs_eta eta;
#ifndef FIO_COMPILER_H
#define FIO_COMPILER_H
-#include <assert.h>
+/* IWYU pragma: begin_exports */
#if __GNUC__ >= 4
#include "compiler-gcc4.h"
#elif __GNUC__ == 3
#else
#error Compiler too old, need gcc at least gcc 3.x
#endif
+/* IWYU pragma: end_exports */
#ifndef __must_check
#define __must_check
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-#include <inttypes.h>
#include "crc32.h"
static const uint32_t crctab[256] = {
#ifndef CRC32_H
#define CRC32_H
+#include <inttypes.h>
+
extern uint32_t fio_crc32(const void * const, unsigned long);
#endif
-#include <inttypes.h>
-#include <string.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
#include "crc32c.h"
/*
* any later version.
*
*/
-#include <inttypes.h>
-
#include "crc32c.h"
/*
#ifndef CRC32C_H
#define CRC32C_H
+#include <inttypes.h>
+
#include "../arch/arch.h"
#include "../lib/types.h"
* Shamelessly lifted from the 2.6 kernel (crypto/md5.c)
*/
#include <string.h>
-#include <stdint.h>
#include "md5.h"
static void md5_transform(uint32_t *hash, uint32_t const *in)
#ifndef FIO_SHA1
#define FIO_SHA1
+#include <inttypes.h>
+
/*
* Based on the Mozilla SHA1 (see mozilla-sha1/sha1.h),
* optimized to do word accesses rather than byte accesses,
*
*/
#include <string.h>
-#include <inttypes.h>
#include "../lib/bswap.h"
#include "sha256.h"
#ifndef FIO_SHA256_H
#define FIO_SHA256_H
+#include <inttypes.h>
+
#define SHA256_DIGEST_SIZE 32
#define SHA256_BLOCK_SIZE 64
*
*/
#include <string.h>
-#include <inttypes.h>
#include "../os/os.h"
*/
#include <string.h>
-#include <inttypes.h>
#include "../lib/bswap.h"
#include "sha512.h"
#ifndef FIO_SHA512_H
#define FIO_SHA512_H
+#include <inttypes.h>
+
struct fio_sha512_ctx {
uint64_t state[8];
uint32_t count[4];
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "../fio.h"
#include "../gettime.h"
#include "../fio_time.h"
-#include "../verify.h"
+#include "../lib/rand.h"
+#include "../os/os.h"
#include "../crc/md5.h"
#include "../crc/crc64.h"
+#include <assert.h>
#include <stdarg.h>
-#include <sys/types.h>
-#include <unistd.h>
+
#include "debug.h"
+#include "log.h"
#ifdef FIO_INC_DEBUG
void __dprint(int type, const char *str, ...)
#ifndef FIO_DEBUG_H
#define FIO_DEBUG_H
-#include <assert.h>
#include "lib/types.h"
-#include "log.h"
enum {
FD_PROCESS = 0,
#include <stdio.h>
#include <string.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <dirent.h>
#include <libgen.h>
-#include <math.h>
-#include <assert.h>
#ifdef CONFIG_VALGRIND_DEV
#include <valgrind/drd.h>
#else
#include "json.h"
#define FIO_DU_NAME_SZ 64
-#include "lib/output_buffer.h"
#include "helper_thread.h"
#include "fio_sem.h"
#include <errno.h>
#include <assert.h>
#include <string.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/uio.h>
#include <errno.h>
-#include <assert.h>
#include <fcntl.h>
#include "../fio.h"
*
*/
#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/uio.h>
#include <errno.h>
-#include <assert.h>
#include <fcntl.h>
#include "../fio.h"
* of the file creation.
*/
#include <stdio.h>
-#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include "../fio.h"
-#include "../filehash.h"
struct fc_data {
enum fio_ddir stat_ddir;
* DDIR_WRITE does ftruncate
*
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/uio.h>
#include <errno.h>
-#include <assert.h>
-#include <fcntl.h>
+#include <unistd.h>
#include "../fio.h"
-#include "../filehash.h"
static int fio_ftruncate_queue(struct thread_data *td, struct io_u *io_u)
{
* IO engine using the Linux native aio interface.
*
*/
-#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <assert.h>
#include <libaio.h>
#include "../fio.h"
*/
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>
* IO engine that reads/writes from MTD character devices.
*
*/
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <mtd/mtd-user.h>
#include "../fio.h"
#include "../optgroup.h"
-#include "../verify.h"
#include "../oslib/libmtd.h"
static libmtd_t desc;
#include <unistd.h>
#include <signal.h>
#include <errno.h>
-#include <assert.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <sys/poll.h>
-#include <sys/types.h>
+#include <poll.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
* LD_LIBRARY_PATH=./engines ./fio examples/cpp_null.fio
*
*/
-#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
#include <assert.h>
#include "../fio.h"
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <assert.h>
-#include <sys/poll.h>
+#include <poll.h>
#include "../fio.h"
#include "../optgroup.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <assert.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/mman.h>
#include "../fio.h"
#include <unistd.h>
#include <sys/uio.h>
#include <errno.h>
-#include <assert.h>
#include "../fio.h"
#include "../optgroup.h"
* Status and ETA code
*/
#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
#ifdef CONFIG_VALGRIND_DEV
#include <valgrind/drd.h>
#include <string.h>
#include "fifo.h"
+#include "minmax.h"
struct fifo *fifo_alloc(unsigned int size)
{
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
-#include "minmax.h"
struct fifo {
unsigned char *buffer; /* the buffer holding the data */
#include <dirent.h>
#include <libgen.h>
#include <sys/stat.h>
-#include <sys/mman.h>
-#include <sys/types.h>
#include "fio.h"
#include "smalloc.h"
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
-#include <unistd.h>
-#include <locale.h>
-#include <time.h>
-
#include "fio.h"
-#include "smalloc.h"
int main(int argc, char *argv[], char *envp[])
{
#include "ioengines.h"
#include "iolog.h"
#include "helpers.h"
+#include "minmax.h"
#include "options.h"
#include "profile.h"
#include "fio_time.h"
+#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <assert.h>
#define RUNNING_ON_VALGRIND 0
#endif
-#include "log.h"
#include "fio_sem.h"
#include "pshared.h"
#include "os/os.h"
#ifndef FIO_TIME_H
#define FIO_TIME_H
+#include <stdint.h>
+/* IWYU pragma: begin_exports */
#include <time.h>
#include <sys/time.h>
+/* IWYU pragma: end_exports */
#include "lib/types.h"
struct thread_data;
-#include <unistd.h>
-#include <math.h>
#include <sys/time.h>
#include <time.h>
* Clock functions
*/
-#include <unistd.h>
#include <math.h>
-#include <sys/time.h>
-#include <time.h>
#include "fio.h"
-#include "fio_sem.h"
-#include "smalloc.h"
-
-#include "hash.h"
#include "os/os.h"
#if defined(ARCH_HAVE_CPU_CLOCK)
#ifndef FIO_GETTIME_H
#define FIO_GETTIME_H
+#include <sys/time.h>
+
#include "arch/arch.h"
/*
-#include <stdlib.h>
#include <errno.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <netinet/in.h>
-#include <unistd.h>
-#include "compiler/compiler.h"
-#include "arch/arch.h"
-#include "os/os.h"
+#include "helpers.h"
#ifndef CONFIG_LINUX_FALLOCATE
int fallocate(int fd, int mode, off_t offset, off_t len)
#ifndef FIO_HELPERS_H
#define FIO_HELPERS_H
-#include "compiler/compiler.h"
-
#include <sys/types.h>
-#include <time.h>
+
+#include "os/os.h"
extern int fallocate(int fd, int mode, off_t offset, off_t len);
extern int posix_fallocate(int fd, off_t offset, off_t len);
#include <math.h>
+#include "fio.h"
#include "json.h"
#include "idletime.h"
#ifndef FIO_IDLETIME_H
#define FIO_IDLETIME_H
-#include "fio.h"
-#include "lib/output_buffer.h"
+#include <sys/time.h>
+#include <sys/types.h>
+#include "os/os.h"
#define CALIBRATE_RUNS 10
#define CALIBRATE_SCALE 1000
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <sys/ipc.h>
#include <sys/types.h>
-#include <sys/stat.h>
#include <dlfcn.h>
#ifdef CONFIG_VALGRIND_DEV
#include <valgrind/drd.h>
#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
-#include <signal.h>
-#include <time.h>
#include <assert.h>
#include "fio.h"
-#include "hash.h"
#include "verify.h"
#include "trim.h"
#include "lib/rand.h"
#include "compiler/compiler.h"
#include "os/os.h"
-#include "log.h"
#include "io_ddir.h"
#include "debug.h"
#include "file.h"
#define FIO_IO_U_QUEUE
#include <assert.h>
+#include <stddef.h>
+
#include "lib/types.h"
struct io_u;
* generic io engine that could be used for other projects.
*
*/
-#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#ifndef FIO_IOENGINE_H
#define FIO_IOENGINE_H
+#include <stddef.h>
+
#include "compiler/compiler.h"
-#include "os/os.h"
-#include "file.h"
+#include "flist.h"
#include "io_u.h"
#define FIO_IOOPS_VERSION 23
*/
#include <stdio.h>
#include <stdlib.h>
-#include <libgen.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "flist.h"
#include "fio.h"
-#include "verify.h"
#include "trim.h"
#include "filelock.h"
#include "smalloc.h"
#ifndef FIO_IOLOG_H
#define FIO_IOLOG_H
+#include <stdio.h>
+
#include "lib/rbtree.h"
#include "lib/ieee754.h"
#include "flist.h"
#include <stdlib.h>
#include <string.h>
-#include <stdio.h>
#include <errno.h>
#include <stdarg.h>
#include "json.h"
#include "lib/output_buffer.h"
-struct json_object;
-struct json_array;
-struct json_pair;
-
#define JSON_TYPE_STRING 0
#define JSON_TYPE_INTEGER 1
#define JSON_TYPE_FLOAT 2
#include <stdlib.h>
-#include <inttypes.h>
#include "bloom.h"
#include "../hash.h"
-#include "../minmax.h"
#include "../crc/xxhash.h"
#include "../crc/murmur3.h"
#include "../crc/crc32c.h"
#include <math.h>
#include <string.h>
-#include <stdio.h>
#include "../hash.h"
#include "gauss.h"
*
* Below code was granted to the public domain.
*/
-#include <inttypes.h>
#include "ieee754.h"
uint64_t pack754(long double f, unsigned bits, unsigned expbits)
#include <stdio.h>
-#include <math.h>
#include "lfsr.h"
#include "../compiler/compiler.h"
-#include <stdlib.h>
#include <assert.h>
-#include <inttypes.h>
+#include <stdlib.h>
#include "memalign.h"
#ifndef FIO_MEMALIGN_H
#define FIO_MEMALIGN_H
+#include <inttypes.h>
+
extern void *fio_memalign(size_t alignment, size_t size);
extern void fio_memfree(void *ptr, size_t size);
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rand.h"
#include "../fio_time.h"
#include "../gettime.h"
-#include "../fio.h"
+#include "../os/os.h"
#define BUF_SIZE 32 * 1024 * 1024ULL
+#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifndef FIO_OUTPUT_BUFFER_H
#define FIO_OUTPUT_BUFFER_H
-#include <unistd.h>
+#include <stddef.h>
struct buf_output {
char *buf;
#include <limits.h>
#include <errno.h>
#include <assert.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#ifndef FIO_PARSE_PATTERN_H
#define FIO_PARSE_PATTERN_H
-struct pattern_fmt;
-
/**
* Pattern format description. The input for 'parse_pattern'.
* Describes format with its name and callback, which should
* 02Feb2004 Initial version
*/
+#include <assert.h>
#include <stdlib.h>
#include <limits.h>
#define _LINUX_PRIO_TREE_H
#include <inttypes.h>
-#include "../hash.h"
struct prio_tree_node {
struct prio_tree_node *left;
*/
#include <string.h>
-#include <assert.h>
#include "rand.h"
#include "pattern.h"
#include "../hash.h"
#include <inttypes.h>
#include <assert.h>
#include "types.h"
-#include "../arch/arch.h"
#define FRAND32_MAX (-1U)
#define FRAND64_MAX (-1ULL)
#ifndef FIO_STRNTOL_H
#define FIO_STRNTOL_H
+#include <stdint.h>
+
long strntol(const char *str, size_t sz, char **end, int base);
#endif
#define true 1
#endif
#else
-#include <stdbool.h>
+#include <stdbool.h> /* IWYU pragma: export */
#endif
#endif
#include <math.h>
#include <string.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <fcntl.h>
-#include "ieee754.h"
#include "zipf.h"
#include "../minmax.h"
#include "../hash.h"
#include <inttypes.h>
#include "rand.h"
+#include "types.h"
struct zipf_state {
uint64_t nranges;
*/
#include <string.h>
-#include <sys/types.h>
#include <signal.h>
#include <stdint.h>
#include <locale.h>
#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
#include <stdarg.h>
#include <syslog.h>
/*
* Memory helpers
*/
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/stat.h>
#include "fio.h"
#ifndef FIO_NO_HAVE_SHM_H
#include <ctype.h>
#include <string.h>
#include <assert.h>
-#include <libgen.h>
-#include <fcntl.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include "fio.h"
#include "verify.h"
#include "parse.h"
-#include "lib/fls.h"
#include "lib/pattern.h"
#include "options.h"
#include "optgroup.h"
#include <string.h>
#include <inttypes.h>
#include "parse.h"
-#include "flist.h"
#include "lib/types.h"
int add_option(struct fio_option *);
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/fadvise.h>
#include <sys/mman.h>
#include <sys/mpctl.h>
#include <malloc.h>
#include <unistd.h>
#include <sys/types.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/pset.h>
#include <sys/mman.h>
#include <sys/dkio.h>
#include <unistd.h>
#include <stdlib.h>
-#include "../arch/arch.h"
+#include "../arch/arch.h" /* IWYU pragma: export */
#include "../lib/types.h"
enum {
os_nr,
};
+/* IWYU pragma: begin_exports */
#if defined(__ANDROID__)
#include "os-android.h"
#elif defined(__linux__)
#ifndef CONFIG_STRLCAT
#include "../oslib/strlcat.h"
#endif
+/* IWYU pragma: end_exports */
#ifdef MSG_DONTWAIT
#define OS_MSG_DONTWAIT MSG_DONTWAIT
#include <sys/mman.h>
#include <sys/uio.h>
#include <sys/resource.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/wait.h>
#include <setjmp.h>
#ifndef POLL_H
#define POLL_H
+typedef int nfds_t;
+
+struct pollfd
+{
+ int fd;
+ short events;
+ short revents;
+};
+
+int poll(struct pollfd fds[], nfds_t nfds, int timeout);
+
#endif /* POLL_H */
+++ /dev/null
-#ifndef SYS_POLL_H
-#define SYS_POLL_H
-
-typedef int nfds_t;
-
-struct pollfd
-{
- int fd;
- short events;
- short revents;
-};
-
-int poll(struct pollfd fds[], nfds_t nfds, int timeout);
-
-#endif /* SYS_POLL_H */
+#ifndef CONFIG_STRCASESTR
+
#include <ctype.h>
#include <stddef.h>
-
-#ifndef CONFIG_STRCASESTR
+#include "strcasestr.h"
char *strcasestr(const char *s1, const char *s2)
{
-#ifdef CONFIG_STRCASESTR
-
-#include <string.h>
-
-#else
+#ifndef CONFIG_STRCASESTR
#ifndef FIO_STRCASESTR_H
#define FIO_STRCASESTR_H
char *strcasestr(const char *haystack, const char *needle);
#endif
+
#endif
+#ifndef CONFIG_STRLCAT
+
#include <string.h>
#include "strlcat.h"
return dstlen + srclen;
}
+
+#endif
+#ifndef CONFIG_STRLCAT
+
#ifndef FIO_STRLCAT_H
#define FIO_STRLCAT_H
+#include <stddef.h>
+
size_t strlcat(char *dst, const char *src, size_t size);
#endif
+
+#endif
+#ifndef CONFIG_HAVE_STRNDUP
+
#include <stdlib.h>
+#include <string.h>
#include "strndup.h"
-#ifndef CONFIG_HAVE_STRNDUP
-
char *strndup(const char *s, size_t n)
{
char *str = malloc(n + 1);
-#include <string.h>
-
#ifndef CONFIG_HAVE_STRNDUP
+#ifndef FIO_STRNDUP_LIB_H
+#define FIO_STRNDUP_LIB_H
+
+#include <stddef.h>
+
char *strndup(const char *s, size_t n);
#endif
+
+#endif
-#include <stdio.h>
+#ifndef CONFIG_STRSEP
+
+#include <stddef.h>
+#include "strsep.h"
char *strsep(char **stringp, const char *delim)
{
} while (sc != 0);
} while (1);
}
+
+#endif
+#ifndef CONFIG_STRSEP
+
#ifndef FIO_STRSEP_LIB_H
#define FIO_STRSEP_LIB_H
char *strsep(char **, const char *);
#endif
+
+#endif
*/
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
-#include <stdlib.h>
-#include <math.h>
#include <float.h>
#include "compiler/compiler.h"
#include "parse.h"
#include "debug.h"
+#include "log.h"
#include "options.h"
#include "optgroup.h"
#include "minmax.h"
#include <stdio.h>
#include <stdlib.h>
-#include <stdarg.h>
#include <unistd.h>
-#include <limits.h>
#include <errno.h>
-#include <sys/poll.h>
+#include <poll.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include "server.h"
#include "crc/crc16.h"
#include "lib/ieee754.h"
-#include "verify.h"
+#include "verify-state.h"
#include "smalloc.h"
int fio_net_port = FIO_NET_PORT;
#include <netinet/in.h>
#include "stat.h"
-#include "os/os.h"
#include "diskutil.h"
#define FIO_NET_PORT 8765
extern const char *fio_server_op(unsigned int);
extern void fio_server_got_signal(int);
-struct thread_stat;
-struct group_run_stats;
extern void fio_server_send_ts(struct thread_stat *, struct group_run_stats *);
extern void fio_server_send_gs(struct group_run_stats *);
extern void fio_server_send_du(void);
* that can be shared across processes and threads
*/
#include <sys/mman.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <assert.h>
#include <string.h>
-#include <unistd.h>
-#include <inttypes.h>
-#include <sys/types.h>
-#include <limits.h>
-#include <fcntl.h>
#ifdef CONFIG_VALGRIND_DEV
#include <valgrind/valgrind.h>
#else
#include "fio.h"
#include "fio_sem.h"
-#include "arch/arch.h"
#include "os/os.h"
#include "smalloc.h"
#include "log.h"
#ifndef FIO_SMALLOC_H
#define FIO_SMALLOC_H
+#include <stddef.h>
+
extern void *smalloc(size_t);
extern void *scalloc(size_t, size_t);
extern void sfree(void *);
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#include <dirent.h>
-#include <libgen.h>
#include <math.h>
#include "fio.h"
#include "fio.h"
#include "steadystate.h"
-#include "helper_thread.h"
bool steadystate_enabled = false;
#ifndef FIO_STEADYSTATE_H
#define FIO_STEADYSTATE_H
-#include "stat.h"
#include "thread_options.h"
-#include "lib/ieee754.h"
extern void steadystate_free(struct thread_data *);
extern void steadystate_check(void);
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
#include <inttypes.h>
#include "../lib/lfsr.h"
#include <stdio.h>
-#include <stdio.h>
#include <unistd.h>
#include <inttypes.h>
#include <math.h>
#include "../blktrace_api.h"
#include "../os/os.h"
#include "../log.h"
+#include "../minmax.h"
#include "../oslib/linux-dev-lookup.h"
#define TRACE_FIFO_SIZE 8192
* just scans the filename for extents of the given size, checksums them,
* and orders them up.
*/
+#include <fcntl.h>
+#include <inttypes.h>
#include <stdio.h>
-#include <stdio.h>
+#include <string.h>
#include <unistd.h>
-#include <inttypes.h>
-#include <assert.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/ioctl.h>
-#include <fcntl.h>
-#include <string.h>
#include "../flist.h"
#include "../log.h"
+#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <inttypes.h>
-#include <assert.h>
-#include <math.h>
-#include <string.h>
#include "../lib/types.h"
-#include "../log.h"
-#include "../lib/lfsr.h"
-#include "../lib/axmap.h"
-#include "../smalloc.h"
-#include "../minmax.h"
#include "../lib/rand.h"
+#include "../log.h"
int main(int argc, char *argv[])
{
*/
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
-#include <time.h>
#include <math.h>
#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include "../lib/lfsr.h"
#include "../gettime.h"
#ifndef FIO_TD_ERROR_H
#define FIO_TD_ERROR_H
+#include "io_ddir.h"
+
/*
* What type of errors to continue on when continue_on_error is used,
* and what type of errors to ignore when ignore_error is used.
/*
* TRIM/DISCARD support
*/
-#include <unistd.h>
-#include <fcntl.h>
#include <string.h>
#include <assert.h>
-#include <pthread.h>
#include "fio.h"
#include "trim.h"
#ifndef FIO_TRIM_H
#define FIO_TRIM_H
-#include "fio.h"
-
#ifdef FIO_HAVE_TRIM
+#include "flist.h"
+#include "iolog.h"
+#include "compiler/compiler.h"
+#include "lib/types.h"
+#include "os/os.h"
+
extern bool __must_check get_next_trim(struct thread_data *td, struct io_u *io_u);
extern bool io_u_should_trim(struct thread_data *td, struct io_u *io_u);
#define FIO_VERIFY_H
#include <stdint.h>
+#include "compiler/compiler.h"
#include "verify-state.h"
#define FIO_HDR_MAGIC 0xacca
#ifndef FIO_RATE_H
#define FIO_RATE_H
+#include <inttypes.h>
+#include <pthread.h>
+
#include "flist.h"
+#include "lib/types.h"
+
+struct sk_out;
+struct thread_data;
struct workqueue_work {
struct flist_head list;