1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */
3 
4 #include <vmlinux.h>
5 #include <bpf/bpf_tracing.h>
6 #include <bpf/bpf_helpers.h>
7 #include "bpf_misc.h"
8 
9 #include "nested_trust_common.h"
10 
11 char _license[] SEC("license") = "GPL";
12 
13 SEC("tp_btf/task_newtask")
14 __success
15 int BPF_PROG(test_read_cpumask, struct task_struct *task, u64 clone_flags)
16 {
17 	bpf_cpumask_test_cpu(0, task->cpus_ptr);
18 	return 0;
19 }
20