Differential D13699 Diff 37324 lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | public: | ||||
bool ProbeModules(const ModuleList module_list); | bool ProbeModules(const ModuleList module_list); | ||||
void DumpModules(Stream &strm) const; | void DumpModules(Stream &strm) const; | ||||
void DumpContexts(Stream &strm) const; | void DumpContexts(Stream &strm) const; | ||||
void DumpKernels(Stream &strm) const; | void DumpKernels(Stream &strm) const; | ||||
bool DumpAllocation(Stream &strm, StackFrame* frame_ptr, const uint32_t id); | |||||
void ListAllocations(Stream &strm, StackFrame* frame_ptr, bool recompute); | void ListAllocations(Stream &strm, StackFrame* frame_ptr, bool recompute); | ||||
void AttemptBreakpointAtKernelName(Stream &strm, const char *name, Error &error, lldb::TargetSP target); | void AttemptBreakpointAtKernelName(Stream &strm, const char *name, Error &error, lldb::TargetSP target); | ||||
void SetBreakAllKernels(bool do_break, lldb::TargetSP target); | void SetBreakAllKernels(bool do_break, lldb::TargetSP target); | ||||
void Status(Stream &strm) const; | void Status(Stream &strm) const; | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | private: | ||||
void HookCallback(RuntimeHook* hook_info, ExecutionContext& context); | void HookCallback(RuntimeHook* hook_info, ExecutionContext& context); | ||||
bool GetArgSimple(ExecutionContext& context, uint32_t arg, uint64_t* data); | bool GetArgSimple(ExecutionContext& context, uint32_t arg, uint64_t* data); | ||||
void CaptureScriptInit1(RuntimeHook* hook_info, ExecutionContext& context); | void CaptureScriptInit1(RuntimeHook* hook_info, ExecutionContext& context); | ||||
void CaptureAllocationInit1(RuntimeHook* hook_info, ExecutionContext& context); | void CaptureAllocationInit1(RuntimeHook* hook_info, ExecutionContext& context); | ||||
void CaptureSetGlobalVar1(RuntimeHook* hook_info, ExecutionContext& context); | void CaptureSetGlobalVar1(RuntimeHook* hook_info, ExecutionContext& context); | ||||
AllocationDetails* FindAllocByID(Stream &strm, const uint32_t alloc_id); | |||||
// | // | ||||
// Helper functions for jitting the runtime | // Helper functions for jitting the runtime | ||||
// | // | ||||
bool JITDataPointer(AllocationDetails* allocation, StackFrame* frame_ptr, | bool JITDataPointer(AllocationDetails* allocation, StackFrame* frame_ptr, | ||||
unsigned int x = 0, unsigned int y = 0, unsigned int z = 0); | unsigned int x = 0, unsigned int y = 0, unsigned int z = 0); | ||||
bool JITTypePointer(AllocationDetails* allocation, StackFrame* frame_ptr); | bool JITTypePointer(AllocationDetails* allocation, StackFrame* frame_ptr); | ||||
bool JITTypePacked(AllocationDetails* allocation, StackFrame* frame_ptr); | bool JITTypePacked(AllocationDetails* allocation, StackFrame* frame_ptr); | ||||
bool JITElementPacked(AllocationDetails* allocation, StackFrame* frame_ptr); | bool JITElementPacked(AllocationDetails* allocation, StackFrame* frame_ptr); | ||||
bool JITAllocationSize(AllocationDetails* allocation, StackFrame* frame_ptr, const uint32_t elem_size); | |||||
bool JITAllocationStride(AllocationDetails* allocation, StackFrame* frame_ptr); | |||||
// Search for a script detail object using a target address. | // Search for a script detail object using a target address. | ||||
// If a script does not currently exist this function will return nullptr. | // If a script does not currently exist this function will return nullptr. | ||||
// If 'create' is true and there is no previous script with this address, | // If 'create' is true and there is no previous script with this address, | ||||
// then a new Script detail object will be created for this address and returned. | // then a new Script detail object will be created for this address and returned. | ||||
ScriptDetails* LookUpScript(lldb::addr_t address, bool create); | ScriptDetails* LookUpScript(lldb::addr_t address, bool create); | ||||
// Search for a previously saved allocation detail object using a target address. | // Search for a previously saved allocation detail object using a target address. | ||||
// If an allocation does not exist for this address then nullptr will be returned. | // If an allocation does not exist for this address then nullptr will be returned. | ||||
// If 'create' is true and there is no previous allocation then a new allocation | // If 'create' is true and there is no previous allocation then a new allocation | ||||
// detail object will be created for this address and returned. | // detail object will be created for this address and returned. | ||||
AllocationDetails* LookUpAllocation(lldb::addr_t address, bool create); | AllocationDetails* LookUpAllocation(lldb::addr_t address, bool create); | ||||
}; | }; | ||||
} // namespace lldb_private | } // namespace lldb_private | ||||
#endif // liblldb_RenderScriptRuntime_h_ | #endif // liblldb_RenderScriptRuntime_h_ |