John Hubbard | b9dcfdf | 2020-12-14 19:05:08 -0800 | [diff] [blame] | 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) |
John Hubbard | a9bed1e | 2020-12-14 19:05:17 -0800 | [diff] [blame^] | 8 | #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 Hubbard | b9dcfdf | 2020-12-14 19:05:08 -0800 | [diff] [blame] | 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 */ |