Home
last modified time | relevance | path

Searched refs:Log (Results 1 – 25 of 55) sorted by relevance

123

/art/tools/dexfuzz/src/dexfuzz/
DOptions.java19 import dexfuzz.Log.LogTag;
87 Log.always("DexFuzz Usage:"); in usage()
88 Log.always(" --input=<file> : Seed DEX file to be fuzzed"); in usage()
89 Log.always(" (Can specify multiple times.)"); in usage()
90 Log.always(" --inputs=<file> : Directory containing DEX files to be fuzzed."); in usage()
91 Log.always(" --output=<file> : Output DEX file to be produced"); in usage()
92 Log.always(""); in usage()
93 Log.always(" --execute : Execute the resulting fuzzed program"); in usage()
94 Log.always(" --host : Execute on host"); in usage()
95 Log.always(" --device=<device> : Execute on an ADB-connected-device, where <device> is"); in usage()
[all …]
DStreamConsumer.java92 Log.error("Client of StreamConsumer was interrupted while waiting for output?"); in getOutput()
134 Log.error("StreamConsumer stopped consuming, but was not told to?"); in consume()
141 Log.error("StreamConsumer caught IOException while consuming"); in consume()
144 Log.error("StreamConsumer caught InterruptedException while consuming"); in consume()
159 Log.error("StreamConsumer caught InterruptedException while waiting for work"); in run()
172 Log.error("invalid state: StreamConsumer told about work, but not CONSUMING?"); in run()
173 Log.error("state was: " + getCurrentState()); in run()
188 Log.error("StreamConsumer Unexpected state: " + state + ", expected " + previousState); in changeState()
DDexFuzz.java47 Log.always(String.format("DexFuzz v%d.%d.%d", in main()
49 Log.always(""); in main()
52 Log.error("Failed to validate options."); in main()
68 } else if (!Log.likelyToLog()) { in main()
99 Log.errorAndQuit("Invalid options provided, desired fuzzer unknown."); in main()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DRawDexFile.java19 import dexfuzz.Log;
92 Log.debug("Updating StringIDs List size: " + stringIds.size()); in write()
99 Log.debug("Updating StringDatas List size: " + stringDatas.size()); in write()
105 Log.debug("Updating MethodIDs List size: " + methodIds.size()); in write()
112 Log.debug("Updating FieldIDs List size: " + fieldIds.size()); in write()
119 Log.debug("Updating ProtoIDs List size: " + protoIds.size()); in write()
126 Log.debug("Updating TypeIDs List size: " + typeIds.size()); in write()
133 Log.debug("Updating TypeLists List size: " + typeLists.size()); in write()
150 Log.errorAndQuit("MapItem's size " + mapItem.size in write()
159 Log.errorAndQuit("MapItem's size " + mapItem.size in write()
[all …]
DOffsetTracker.java19 import dexfuzz.Log;
168 Log.error(String.format("Couldn't find original offset 0x%x!", in associateOffsets()
186 Log.errorAndQuit("Not all created Offsettable items have been added to the " in updatePositionOfNextOffsettable()
241 Log.errorAndQuit("Being asked to update dangling offsets but the " in updateOffsets()
277 Log.errorAndQuit("Being asked to go to the point before the MapList was written out," in goBackToPreviousPoint()
296 Log.errorAndQuit("Header " + offsetName + " offset not pointing at first element?"); in updateHeaderOffsetIfValid()
358 Log.errorAndQuit("When calling updateMapListOffsets, could not find new " in updateOffsetsInHeaderAndMapFile()
390 Log.info("Updating offset in MapItem (type: " + mapItem.type + ") after " in updateOffsetsInHeaderAndMapFile()
415 Log.info("Calling insertNewOffsettableAsFirstEverTypeList()"); in insertNewOffsettableAsFirstEverTypeList()
424 Log.errorAndQuit("Could not find any StringDataItems to insert the type list before."); in insertNewOffsettableAsFirstEverTypeList()
[all …]
DStringDataItem.java19 import dexfuzz.Log;
38 Log.warn("Don't have full support for decoding MUTF-8 yet, DEX file " in read()
83 Log.warn("Reading a string that hasn't been properly decoded! Returning empty string."); in getString()
DOffset.java19 import dexfuzz.Log;
111 Log.debug("Updating what an Offset points to..."); in pointTo()
127 Log.debug("Updating what an Offset points to..."); in unsetNullAndPointTo()
DDebugInfoItem.java19 import dexfuzz.Log;
40 Log.errorAndQuit("Error reading debug_info_item. The last byte is not DBG_END_SEQUENCE."); in read()
/art/tools/dexfuzz/src/dexfuzz/program/
DMutatableCode.java19 import dexfuzz.Log;
179 Log.debug("Try block's first instruction was updated"); in updateTryBlocksWithReplacementInsn()
182 Log.debug("Try block's first instruction was updated"); in updateTryBlocksWithReplacementInsn()
186 Log.debug("Try block's last instruction was updated"); in updateTryBlocksWithReplacementInsn()
189 Log.debug("Try block's last instruction was updated"); in updateTryBlocksWithReplacementInsn()
193 Log.debug("Try block's catch-all instruction was updated"); in updateTryBlocksWithReplacementInsn()
196 Log.debug("Try block's catch-all instruction was updated"); in updateTryBlocksWithReplacementInsn()
210 Log.debug("Try block's handler instruction was updated"); in updateTryBlocksWithReplacementInsn()
213 Log.debug("Try block's handler instruction was updated"); in updateTryBlocksWithReplacementInsn()
257 Log.debug(branchInsn + " was pointing at the deleted instruction, updated."); in deleteInstructionFull()
[all …]
DMutationSerializer.java19 import dexfuzz.Log;
55 Log.errorAndQuit("Could not read line during mutation loading."); in readMutation()
66 Log.errorAndQuit("Cannot find a mutator class called: " + mutatorClassName); in readMutation()
73 Log.errorAndQuit("Unable to instantiate " + mutatorClassName in readMutation()
76 Log.errorAndQuit("Unable to access methods in " + mutatorClassName + "."); in readMutation()
80 Log.errorAndQuit("Unable to get Mutation for Mutator: " + mutatorClassName); in readMutation()
DProgram.java19 import dexfuzz.Log;
228 Log.debug("Legal to mutate code item " + codeItemIdx); in Program()
233 Log.debug("Not legal to mutate code item " + codeItemIdx); in Program()
241 Log.debug("Registering mutator " + mutator.getClass().getSimpleName()); in registerMutator()
329 Log.errorAndQuit("You've got an EncodedMethod that points to an Offsettable" in associateMethod()
344 Log.debug("Mutating everything."); in legalToMutate()
348 Log.debug("Code item marked with _MUTATE."); in legalToMutate()
351 Log.debug("Code item not marked with _MUTATE, but not mutating all code items."); in legalToMutate()
402 Log.info("Attempting " + mutations + " mutations for method " + mutatableCode.name); in mutateAMutatableCode()
413 Log.info("Running mutator " + mutator.getClass().getSimpleName()); in mutateAMutatableCode()
[all …]
DCodeTranslator.java19 import dexfuzz.Log;
52 Log.debug("Translating CodeItem " + codeItemIdx in codeItemToMutatableCode()
116 Log.errorAndQuit("Bad offset calculation in data-target insn"); in codeItemToMutatableCode()
123 Log.errorAndQuit("Bad offset calculation in branch insn"); in codeItemToMutatableCode()
141 Log.debug("Translating MutatableCode " + mutatableCode.name in mutatableCodeToCodeItem()
160 Log.errorAndQuit(String.format("%s does not have expected location 0x%x", in mutatableCodeToCodeItem()
274 Log.errorAndQuit(String.format( in readTryBlocks()
279 Log.errorAndQuit(String.format( in readTryBlocks()
294 Log.errorAndQuit( in readTryBlocks()
308 Log.errorAndQuit(String.format( in readTryBlocks()
[all …]
DIdCreator.java19 import dexfuzz.Log;
56 Log.errorAndQuit("Did not create necessary return type before finding insertion " in findProtoIdInsertionPoint()
61 Log.errorAndQuit("Did not create necessary parameter list before finding insertion " in findProtoIdInsertionPoint()
92 Log.errorAndQuit("Did not create necessary class, name or proto strings before finding " in findMethodIdInsertionPoint()
117 Log.errorAndQuit("Did not create necessary descriptor string before finding " in findTypeIdInsertionPoint()
148 Log.errorAndQuit("Did not create necessary class, type or name strings before finding " in findFieldIdInsertionPoint()
171 Log.errorAndQuit("Referenced too many methods for the DEX file."); in createMethodId()
207 Log.info(String.format("Created new MethodIdItem for %s %s %s, index: 0x%04x", in createMethodId()
258 Log.errorAndQuit("Referenced too many classes for the DEX file."); in createTypeId()
281 Log.info(String.format("Created new ClassIdItem for %s, index: 0x%04x", in createTypeId()
[all …]
/art/tools/dexfuzz/src/dexfuzz/executors/
DDevice.java28 import dexfuzz.Log;
70 Log.errorAndQuit("Cannot run a fuzzed program if $" + key + " is not set!"); in checkForEnvVar()
95 Log.errorAndQuit("Host core image not found at " + coreImage.getPath() in setup()
113 Log.errorAndQuit("Problem executing ADB - is it in your $PATH?"); in setup()
116 Log.errorAndQuit("IOException when executing ADB, is it working?"); in setup()
118 Log.errorAndQuit("InterruptedException when executing ADB, is it working?"); in setup()
124 Log.errorAndQuit("Couldn't connect to specified ADB device: " + deviceName); in setup()
194 Log.info("Executing: " + command); in executeCommand()
215 Log.info("Return value: " + result.returnValue); in executeCommand()
232 Log.errorAndQuit("ExecutionResult.execute() caught an IOException"); in executeCommand()
[all …]
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
DInstructionDeleter.java19 import dexfuzz.Log;
69 Log.debug("Cannot delete insns in a method with only a few."); in canMutate()
95 Log.info("Deleting " + toBeDeleted); in applyMutation()
104 Log.info(toBeDeleted + " had associated data, so the data insn was deleted."); in applyMutation()
114 Log.info(toBeDeleted in applyMutation()
133 Log.errorAndQuit("Tried to delete a data insn, " in applyMutation()
DTryBlockShifter.java19 import dexfuzz.Log;
85 Log.debug("Method contains no tries."); in canMutate()
89 Log.debug("Not enough instructions to shift try block."); in canMutate()
137 Log.errorAndQuit("Faulty logic in TryBlockShifter!"); in generateMutation()
190 Log.info("Shifted the start of try block #" + mutation.tryIdx in applyMutation()
194 Log.info("Shifted the end of try block #" + mutation.tryIdx in applyMutation()
198 Log.info("Shifted the catch all handler of try block #" + mutation.tryIdx in applyMutation()
203 Log.info("Shifted handler #" + mutation.shiftingHandlerIdx in applyMutation()
206 Log.errorAndQuit("faulty logic in TryBlockShifter"); in applyMutation()
DCodeMutator.java19 import dexfuzz.Log;
75 Log.info("Set mutation likelihood to " + likelihood in CodeMutator()
93 Log.info("Skipping mutation."); in attemptToMutate()
98 Log.info("Forcing mutation."); in forceMutate()
DInstructionSwapper.java19 import dexfuzz.Log;
72 Log.debug("Cannot swap insns in a method with only one."); in canMutate()
151 Log.info("Swapping " + toBeSwapped + " with " + swappedWith); in applyMutation()
157 Log.info("Now " + swappedWith + " is swapped with " + toBeSwapped); in applyMutation()
DVRegChanger.java19 import dexfuzz.Log;
94 Log.debug("Impossible to change vregs in a method with fewer than 2 registers."); in canMutate()
135 Log.errorAndQuit("Invalid number of vregs reported by a Format."); in generateMutation()
184 Log.errorAndQuit("Invalid number of vregs specified in a VRegChanger mutation."); in applyMutation()
187 Log.info("In " + oldInsnString + " changed v" + vregId + ": v" + oldVregValue in applyMutation()
DNewInstanceChanger.java19 import dexfuzz.Log;
100 Log.debug("Cannot mutate, only one type, skipping..."); in canMutate()
109 Log.debug("No New Instance in method, skipping..."); in canMutate()
123 Log.errorAndQuit("Less than two types present, quitting..."); in generateMutation()
151 Log.info("Changed the type of " + newInstanceInsn.toString() + in applyMutation()
197 Log.info("Changed " + oldMethodIdx + " to " + methodId); in changeInvokeDirect()
DBranchShifter.java19 import dexfuzz.Log;
93 Log.debug("Method contains only one instruction, skipping."); in canMutate()
102 Log.debug("Method contains no branch instructions."); in canMutate()
163 Log.info("Shifted the target of " + branchInsn + " to point to " + newTargetInsn); in applyMutation()
DConversionRepeater.java19 import dexfuzz.Log;
93 Log.debug("No conversion operations in method, skipping..."); in canMutate()
165 Log.errorAndQuit( in applyMutation()
185 Log.info("Performing conversion repetition for " + originalInsn); in applyMutation()
/art/libnativeloader/test/src/android/test/app/
DTestActivity.java21 import android.util.Log;
39 Log.d(getPackageName(), "library " + name + " is successfully loaded"); in tryLoadingLib()
41 Log.d(getPackageName(), "failed to load libarary " + name, e); in tryLoadingLib()
/art/tools/dexfuzz/src/dexfuzz/fuzzers/
DFuzzer.java19 import dexfuzz.Log;
132 Log.errorAndQuit("Executor doesn't have correct constructor."); in addExecutorsForArchitecture()
134 Log.errorAndQuit("Executor couldn't be instantiated."); in addExecutorsForArchitecture()
136 Log.errorAndQuit("Executor couldn't be accessed."); in addExecutorsForArchitecture()
138 Log.errorAndQuit("Invalid arguments to instantiation of Executor."); in addExecutorsForArchitecture()
140 Log.errorAndQuit("Instantiation of Executor threw an Exception!"); in addExecutorsForArchitecture()
185 Log.errorAndQuit("Problem loading seed file."); in fuzz()
198 Log.info("Skipping mutation stage as requested."); in fuzz()
213 Log.errorAndQuit("Your Fuzzer subclass called execute() " in execute()
388 Log.errorAndQuit("Couldn't open a file called " + inputName); in loadProgram()
[all …]
/art/tools/dexfuzz/src/dexfuzz/listeners/
DUniqueProgramTrackerListener.java19 import dexfuzz.Log;
182 Log.error("Failed to successfully write out the unique programs DB!"); in saveUniqueProgsData()
183 Log.error("Old DB should be saved in " + databaseFile + ".old"); in saveUniqueProgsData()
200 Log.error("Failed to save divergent program! Does divergent_programs/ exist?"); in saveDivergentProgram()
250 Log.always("-- UNIQUE PROGRAM REPORT --"); in handleSummary()
251 Log.always("Unique Programs Seen: " + uniquePrograms.size()); in handleSummary()
252 Log.always("Unique Outputs Seen: " + uniqueOutputs.size()); in handleSummary()
253 Log.always("---------------------------"); in handleSummary()

123