| 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */ |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | char _license = "GPL"; |
| 8 | |
| 9 | pid_t tgid = 0; |
| 10 | |
| 11 | |
| 12 | int |
| 13 | struct task_struct *task) |
| 14 | |
| 15 | tgid = task->tgid; |
| 16 | |
| 17 | return 0; |
| 18 | |
| 19 | |
| 20 | |
| 21 | struct bpf_testmod_ops testmod_struct_ptr = |
| 22 | .test_maybe_null = test_maybe_null_struct_ptr, |
| 23 | }; |
| 24 |