| 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 /* | 7 /* |
| 8 * ncval.c - command line validator for NaCl. | 8 * ncval.c - command line validator for NaCl. |
| 9 * Mostly for testing. | 9 * Mostly for testing. |
| 10 */ | 10 */ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include <stdarg.h> | 21 #include <stdarg.h> |
| 22 #include <string.h> | 22 #include <string.h> |
| 23 #include <errno.h> | 23 #include <errno.h> |
| 24 #include <sys/timeb.h> | 24 #include <sys/timeb.h> |
| 25 #include <time.h> | 25 #include <time.h> |
| 26 #include "native_client/src/include/nacl_macros.h" | 26 #include "native_client/src/include/nacl_macros.h" |
| 27 #include "native_client/src/shared/gio/gio.h" | 27 #include "native_client/src/shared/gio/gio.h" |
| 28 #include "native_client/src/shared/platform/nacl_log.h" | 28 #include "native_client/src/shared/platform/nacl_log.h" |
| 29 #include "native_client/src/shared/utils/flags.h" | 29 #include "native_client/src/shared/utils/flags.h" |
| 30 #include "native_client/src/trusted/validator/ncfileutil.h" | 30 #include "native_client/src/trusted/validator/ncfileutil.h" |
| 31 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" | 31 #include "native_client/src/trusted/cpu_features/arch/x86/cpu_x86.h" |
| 32 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter.
h" | 32 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter.
h" |
| 33 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter_
internal.h" | 33 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter_
internal.h" |
| 34 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter_
detailed.h" | 34 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/ncvalidate_iter_
detailed.h" |
| 35 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_jumps.h" | 35 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_jumps.h" |
| 36 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histog
ram.h" | 36 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histog
ram.h" |
| 37 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_memory_protec
t.h" | 37 #include "native_client/src/trusted/validator/x86/ncval_reg_sfi/nc_memory_protec
t.h" |
| 38 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncdecode.h" | 38 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncdecode.h" |
| 39 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncdecode_verbose
.h" | 39 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncdecode_verbose
.h" |
| 40 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.h" | 40 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate.h" |
| 41 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate_detai
led.h" | 41 #include "native_client/src/trusted/validator/x86/ncval_seg_sfi/ncvalidate_detai
led.h" |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 data.num_bytes, data.base); | 945 data.num_bytes, data.base); |
| 946 NaClMaybeDecodeDataSegment(&data.bytes[0], data.base, data.num_bytes); | 946 NaClMaybeDecodeDataSegment(&data.bytes[0], data.base, data.num_bytes); |
| 947 /* always succeed, so that the testing framework works. */ | 947 /* always succeed, so that the testing framework works. */ |
| 948 result = 0; | 948 result = 0; |
| 949 } | 949 } |
| 950 | 950 |
| 951 NaClLogModuleFini(); | 951 NaClLogModuleFini(); |
| 952 GioFileDtor(gout); | 952 GioFileDtor(gout); |
| 953 return result; | 953 return result; |
| 954 } | 954 } |
| OLD | NEW |