Now that defining trusted fields in a struct is supported, we should add selftests to verify the behavior. This patch adds a few such testcases. Signed-off-by: David Vernet <void@manifault.com> Link: https://lore.kernel.org/r/20230125143816.721952-4-void@manifault.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
13 lines
374 B
C
13 lines
374 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2023 Meta Platforms, Inc. and affiliates. */
|
|
|
|
#ifndef _NESTED_TRUST_COMMON_H
|
|
#define _NESTED_TRUST_COMMON_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
bool bpf_cpumask_test_cpu(unsigned int cpu, const struct cpumask *cpumask) __ksym;
|
|
bool bpf_cpumask_first_zero(const struct cpumask *cpumask) __ksym;
|
|
|
|
#endif /* _NESTED_TRUST_COMMON_H */
|