OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sandbox/linux/bpf_dsl/codegen.h" | 5 #include "sandbox/linux/bpf_dsl/codegen.h" |
6 | 6 |
7 #include <stddef.h> | |
8 #include <stdint.h> | |
9 | |
10 #include <limits> | 7 #include <limits> |
11 #include <utility> | 8 #include <utility> |
12 | 9 |
13 #include "base/logging.h" | 10 #include "base/logging.h" |
14 #include "sandbox/linux/system_headers/linux_filter.h" | 11 #include "sandbox/linux/system_headers/linux_filter.h" |
15 | 12 |
16 // This CodeGen implementation strives for simplicity while still | 13 // This CodeGen implementation strives for simplicity while still |
17 // generating acceptable BPF programs under typical usage patterns | 14 // generating acceptable BPF programs under typical usage patterns |
18 // (e.g., by PolicyCompiler). | 15 // (e.g., by PolicyCompiler). |
19 // | 16 // |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 if (base::get<1>(lhs) != base::get<1>(rhs)) | 149 if (base::get<1>(lhs) != base::get<1>(rhs)) |
153 return base::get<1>(lhs) < base::get<1>(rhs); | 150 return base::get<1>(lhs) < base::get<1>(rhs); |
154 if (base::get<2>(lhs) != base::get<2>(rhs)) | 151 if (base::get<2>(lhs) != base::get<2>(rhs)) |
155 return base::get<2>(lhs) < base::get<2>(rhs); | 152 return base::get<2>(lhs) < base::get<2>(rhs); |
156 if (base::get<3>(lhs) != base::get<3>(rhs)) | 153 if (base::get<3>(lhs) != base::get<3>(rhs)) |
157 return base::get<3>(lhs) < base::get<3>(rhs); | 154 return base::get<3>(lhs) < base::get<3>(rhs); |
158 return false; | 155 return false; |
159 } | 156 } |
160 | 157 |
161 } // namespace sandbox | 158 } // namespace sandbox |
OLD | NEW |