OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ |
8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__ |
9 | 9 |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" | 11 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h" |
12 #include "native_client/src/trusted/validator/types_memory_model.h" | 12 #include "native_client/src/trusted/validator/types_memory_model.h" |
13 | 13 |
14 /* | 14 /* |
15 * ncvalidate.h: Validator for the segment-based sandbox. | 15 * ncvalidate.h: Validator for the segment-based sandbox. |
16 * | 16 * |
17 * This is the primary library interface to the validator for the | 17 * This is the primary library interface to the validator for the |
18 * segment-based sandbox. This version should be used when performance | 18 * segment-based sandbox. This version should be used when performance |
19 * is important. See ncvalidate_detailed.h for a secondary API which | 19 * is important. See ncvalidate_detailed.h for a secondary API which |
20 * provides more details when reporting errors. | 20 * provides more details when reporting errors. |
21 * | 21 * |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 * If zero, no messages are printed. | 131 * If zero, no messages are printed. |
132 * If >0, only that many diagnostic errors are printed. | 132 * If >0, only that many diagnostic errors are printed. |
133 * If negative, all validator diagnostics are printed. | 133 * If negative, all validator diagnostics are printed. |
134 */ | 134 */ |
135 void NCValidatorSetMaxDiagnostics(int new_value); | 135 void NCValidatorSetMaxDiagnostics(int new_value); |
136 | 136 |
137 /* Returns 1 if any code has been overwritten with halts. */ | 137 /* Returns 1 if any code has been overwritten with halts. */ |
138 int NCValidatorDidStubOut(struct NCValidatorState *vstate); | 138 int NCValidatorDidStubOut(struct NCValidatorState *vstate); |
139 | 139 |
140 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__
*/ | 140 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_SEG_SFI_NCVALIDATE_H__
*/ |
OLD | NEW |