blob: 921b4caad8ef4fbb1e9247fece74d29e0284f641 [file] [log] [blame]
John Hubbardb9dcfdf2020-12-14 19:05:08 -08001/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef __GUP_TEST_H
3#define __GUP_TEST_H
4
5#include <linux/types.h>
6
7#define GUP_FAST_BENCHMARK _IOWR('g', 1, struct gup_test)
John Hubbarda9bed1e2020-12-14 19:05:17 -08008#define PIN_FAST_BENCHMARK _IOWR('g', 2, struct gup_test)
9#define PIN_LONGTERM_BENCHMARK _IOWR('g', 3, struct gup_test)
10#define GUP_BASIC_TEST _IOWR('g', 4, struct gup_test)
11#define PIN_BASIC_TEST _IOWR('g', 5, struct gup_test)
John Hubbardb9dcfdf2020-12-14 19:05:08 -080012
13struct gup_test {
14 __u64 get_delta_usec;
15 __u64 put_delta_usec;
16 __u64 addr;
17 __u64 size;
18 __u32 nr_pages_per_call;
19 __u32 flags;
20};
21
22#endif /* __GUP_TEST_H */