1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
4 #ifndef _UPTR_TEST_COMMON_H
5 #define _UPTR_TEST_COMMON_H
7 #define MAGIC_VALUE 0xabcd1234
11 /* Avoid fwd btf type being generated for the following struct */
12 struct large_data
*dummy_large_data
;
13 struct empty_data
*dummy_empty_data
;
14 struct user_data
*dummy_data
;
15 struct cgroup
*dummy_cgrp
;
29 struct user_data __uptr
*udata
;
33 struct user_data __uptr
*udata
;
34 struct cgroup __kptr
*cgrp
;
35 struct nested_udata nested
;
38 struct value_lock_type
{
39 struct user_data __uptr
*udata
;
40 struct bpf_spin_lock lock
;
44 __u8 one_page
[PAGE_SIZE
];
49 struct large_data __uptr
*udata
;
56 struct empty_data __uptr
*udata
;
60 struct cgroup __uptr
*cgrp
;