2 * ZPIOS is a heavily modified version of the original PIOS test code.
3 * It is designed to have the test code running in the Linux kernel
4 * against ZFS while still being flexibly controlled from user space.
6 * Copyright (C) 2008-2010 Lawrence Livermore National Security, LLC.
7 * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
8 * Written by Brian Behlendorf <behlendorf1@llnl.gov>.
11 * Original PIOS Test Code
12 * Copyright (C) 2004 Cluster File Systems, Inc.
13 * Written by Peter Braam <braam@clusterfs.com>
14 * Atul Vidwansa <atul@clusterfs.com>
15 * Milind Dumbare <milind@clusterfs.com>
17 * This file is part of ZFS on Linux.
18 * For details, see <http://zfsonlinux.org/>.
20 * ZPIOS is free software; you can redistribute it and/or modify it
21 * under the terms of the GNU General Public License as published by the
22 * Free Software Foundation; either version 2 of the License, or (at your
23 * option) any later version.
25 * ZPIOS is distributed in the hope that it will be useful, but WITHOUT
26 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
27 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
30 * You should have received a copy of the GNU General Public License along
31 * with ZPIOS. If not, see <http://www.gnu.org/licenses/>.
33 * Copyright (c) 2015, Intel Corporation.
36 #ifndef _ZPIOS_INTERNAL_H
37 #define _ZPIOS_INTERNAL_H
39 #include "zpios-ctl.h"
45 typedef struct dmu_obj
{
50 /* thread doing the IO data */
51 typedef struct thread_data
{
52 struct run_args
*run_args
;
59 /* region for IO data */
60 typedef struct zpios_region
{
70 /* arguments for one run */
71 typedef struct run_args
{
74 char pool
[ZPIOS_NAME_SIZE
];
85 char pre
[ZPIOS_PATH_SIZE
];
86 char post
[ZPIOS_PATH_SIZE
];
87 char log
[ZPIOS_PATH_SIZE
];
91 wait_queue_head_t waitq
;
92 volatile uint64_t threads_done
;
101 thread_data_t
**threads
;
102 zpios_region_t regions
[0]; /* Must be last element */
105 #define ZPIOS_INFO_BUFFER_SIZE 65536
106 #define ZPIOS_INFO_BUFFER_REDZONE 1024
108 typedef struct zpios_info
{
109 spinlock_t info_lock
;
112 char *info_head
; /* Internal kernel use only */
115 #endif /* _ZPIOS_INTERNAL_H */