| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <magenta/syscalls.h> | 6 #include <magenta/syscalls.h> |
| 7 #include <mxio/util.h> | 7 #include <mxio/util.h> |
| 8 #include <stdbool.h> | 8 #include <stdbool.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // These expect a file to exist that we aren't putting in the image. | 25 // These expect a file to exist that we aren't putting in the image. |
| 26 "Read", | 26 "Read", |
| 27 "FileLength", | 27 "FileLength", |
| 28 "FilePosition", | 28 "FilePosition", |
| 29 // Hangs. | 29 // Hangs. |
| 30 "ArrayLengthMaxElements", | 30 "ArrayLengthMaxElements", |
| 31 "Int8ListLengthMaxElements", | 31 "Int8ListLengthMaxElements", |
| 32 "ThreadPool_WorkerShutdown", | 32 "ThreadPool_WorkerShutdown", |
| 33 "LargeMap", | 33 "LargeMap", |
| 34 "CompileFunctionOnHelperThread", | 34 "CompileFunctionOnHelperThread", |
| 35 // Kernel panic. | |
| 36 "ThreadBarrier", | |
| 37 // The profiler is turned off. | 35 // The profiler is turned off. |
| 38 "Profiler_AllocationSampleTest", | 36 "Profiler_AllocationSampleTest", |
| 39 "Profiler_ArrayAllocation", | 37 "Profiler_ArrayAllocation", |
| 40 "Profiler_BasicSourcePosition", | 38 "Profiler_BasicSourcePosition", |
| 41 "Profiler_BasicSourcePositionOptimized", | 39 "Profiler_BasicSourcePositionOptimized", |
| 42 "Profiler_BinaryOperatorSourcePosition", | 40 "Profiler_BinaryOperatorSourcePosition", |
| 43 "Profiler_BinaryOperatorSourcePositionOptimized", | 41 "Profiler_BinaryOperatorSourcePositionOptimized", |
| 44 "Profiler_ChainedSamples", | 42 "Profiler_ChainedSamples", |
| 45 "Profiler_ClosureAllocation", | 43 "Profiler_ClosureAllocation", |
| 46 "Profiler_CodeTicks", | 44 "Profiler_CodeTicks", |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 "TimelineEventDurationPrintJSON", | 99 "TimelineEventDurationPrintJSON", |
| 102 "TimelineEventArguments", | 100 "TimelineEventArguments", |
| 103 "TimelineEventArgumentsPrintJSON", | 101 "TimelineEventArgumentsPrintJSON", |
| 104 "TimelineEventBufferPrintJSON", | 102 "TimelineEventBufferPrintJSON", |
| 105 "TimelineEventCallbackRecorderBasic", | 103 "TimelineEventCallbackRecorderBasic", |
| 106 "TimelineAnalysis_ThreadBlockCount", | 104 "TimelineAnalysis_ThreadBlockCount", |
| 107 "TimelineRingRecorderJSONOrder", | 105 "TimelineRingRecorderJSONOrder", |
| 108 "TimelinePauses_BeginEnd", | 106 "TimelinePauses_BeginEnd", |
| 109 // Crash. | 107 // Crash. |
| 110 "FindCodeObject", | 108 "FindCodeObject", |
| 111 // Needs OS::Sleep. | |
| 112 "MessageHandler_Run", | |
| 113 "Sleep", | |
| 114 // Calls VirtualMemory::FreeSubSegment. | |
| 115 "GrowableObjectArray", | |
| 116 "PrintJSON", | |
| 117 "GenerateSource", | |
| 118 "FreeVirtualMemory", | |
| 119 // Several missing calls. | |
| 120 "OsFuncs", | |
| 121 // OS::AlignedAllocate. | |
| 122 "OSAlignedAllocate", | |
| 123 // Needs NativeSymbolResolver | 109 // Needs NativeSymbolResolver |
| 124 "Service_PersistentHandles", | 110 "Service_PersistentHandles", |
| 125 // Need to investigate: | 111 // Need to investigate: |
| 126 "ThreadPool_RunOne", | |
| 127 "ThreadPool_WorkerTimeout", | |
| 128 "Monitor", | |
| 129 "ThreadIterator_AddFindRemove", | 112 "ThreadIterator_AddFindRemove", |
| 130 // Needs Utils::HostToBigEndian16 | |
| 131 "Endianity", | |
| 132 }; | 113 }; |
| 133 | 114 |
| 134 | 115 |
| 135 static bool contains(const char** list, intptr_t len, const char* str) { | 116 static bool contains(const char** list, intptr_t len, const char* str) { |
| 136 for (intptr_t i = 0; i < len; i++) { | 117 for (intptr_t i = 0; i < len; i++) { |
| 137 if (strcmp(list[i], str) == 0) { | 118 if (strcmp(list[i], str) == 0) { |
| 138 return true; | 119 return true; |
| 139 } | 120 } |
| 140 } | 121 } |
| 141 return false; | 122 return false; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 handle_result(result, test); | 227 handle_result(result, test); |
| 247 } | 228 } |
| 248 | 229 |
| 249 fclose(fp); | 230 fclose(fp); |
| 250 if (test != NULL) { | 231 if (test != NULL) { |
| 251 free(test); | 232 free(test); |
| 252 } | 233 } |
| 253 return 0; | 234 return 0; |
| 254 } | 235 } |
| 255 | 236 |
| OLD | NEW |