xref: /linux/kernel/bpf/diagnostics.h (revision 5ad746166341e3c07250ee09518d7e4ab5cfb966)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
3 
4 #ifndef __BPF_DIAGNOSTICS_H
5 #define __BPF_DIAGNOSTICS_H
6 
7 #include <linux/compiler_attributes.h>
8 #include <linux/types.h>
9 
10 struct bpf_verifier_env;
11 
12 bool bpf_diag_enabled(const struct bpf_verifier_env *env);
13 
14 #endif /* __BPF_DIAGNOSTICS_H */
15