]>
Commit | Line | Data |
---|---|---|
b9dcfdff JH |
1 | /* 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) | |
8 | #define GUP_BENCHMARK _IOWR('g', 2, struct gup_test) | |
9 | #define PIN_FAST_BENCHMARK _IOWR('g', 3, struct gup_test) | |
10 | #define PIN_BENCHMARK _IOWR('g', 4, struct gup_test) | |
11 | #define PIN_LONGTERM_BENCHMARK _IOWR('g', 5, struct gup_test) | |
12 | ||
13 | struct 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 */ |