forked from vbpf/prevail
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.hpp
More file actions
29 lines (23 loc) · 851 Bytes
/
config.hpp
File metadata and controls
29 lines (23 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: MIT
#pragma once
enum class abstract_domain_kind { EBPF_DOMAIN, TYPE_DOMAIN, OFFSET_DOMAIN, REGION_DOMAIN, INTERVAL_PROP_DOMAIN };
struct ebpf_verifier_options_t {
bool check_termination;
bool assume_assertions;
bool print_invariants;
bool print_failures;
bool no_simplify;
abstract_domain_kind abstract_domain;
// False to use actual map fd's, true to use mock fd's.
bool mock_map_fds;
// True to do additional checks for some things that would fail at runtime.
bool strict;
};
struct ebpf_verifier_stats_t {
int total_unreachable;
int total_warnings;
int max_instruction_count;
};
extern const ebpf_verifier_options_t ebpf_verifier_default_options;
extern thread_local ebpf_verifier_options_t thread_local_options;