LLDB  mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
lldb_private::RenderScriptRuntime Class Reference

#include <RenderScriptRuntime.h>

Inheritance diagram for lldb_private::RenderScriptRuntime:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::RenderScriptRuntime:
Collaboration graph
[legend]

Classes

struct  AllocationDetails
 
struct  Element
 
struct  HookDefn
 
struct  RuntimeHook
 
struct  ScriptDetails
 

Public Types

enum  ModuleKind {
  eModuleKindIgnored, eModuleKindLibRS, eModuleKindDriver, eModuleKindImpl,
  eModuleKindKernelObj
}
 
- Public Types inherited from lldb_private::CPPLanguageRuntime
enum  LibCppStdFunctionCallableCase { LibCppStdFunctionCallableCase::Lambda = 0, LibCppStdFunctionCallableCase::CallableObject, LibCppStdFunctionCallableCase::FreeOrMemberFunction, LibCppStdFunctionCallableCase::Invalid }
 

Public Member Functions

 ~RenderScriptRuntime () override
 
bool isA (const void *ClassID) const override
 
bool GetDynamicTypeAndAddress (ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type) override
 
TypeAndOrName FixUpDynamicType (const TypeAndOrName &type_and_or_name, ValueObject &static_value) override
 
bool CouldHaveDynamicValue (ValueObject &in_value) override
 
lldb::BreakpointResolverSP CreateExceptionResolver (const lldb::BreakpointSP &bp, bool catch_bp, bool throw_bp) override
 
bool LoadModule (const lldb::ModuleSP &module_sp)
 
void DumpModules (Stream &strm) const
 
void DumpContexts (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, const uint32_t index)
 
bool RecomputeAllAllocations (Stream &strm, StackFrame *frame_ptr)
 
bool PlaceBreakpointOnKernel (lldb::TargetSP target, Stream &messages, const char *name, const lldb_renderscript::RSCoordinate *coords=nullptr)
 
bool PlaceBreakpointOnReduction (lldb::TargetSP target, Stream &messages, const char *reduce_name, const lldb_renderscript::RSCoordinate *coords=nullptr, int kernel_types=~(0))
 
bool PlaceBreakpointOnScriptGroup (lldb::TargetSP target, Stream &strm, ConstString name, bool stop_on_all)
 
void SetBreakAllKernels (bool do_break, lldb::TargetSP target)
 
void DumpStatus (Stream &strm) const
 
void ModulesDidLoad (const ModuleList &module_list) override
 
bool LoadAllocation (Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr)
 
bool SaveAllocation (Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr)
 
void Update ()
 
void Initiate ()
 
const lldb_renderscript::RSScriptGroupListGetScriptGroups () const
 
bool IsKnownKernel (ConstString name)
 
bool GetOverrideExprOptions (clang::TargetOptions &prototype)
 
lldb_private::ConstString GetPluginName () override
 
uint32_t GetPluginVersion () override
 
bool ResolveKernelName (lldb::addr_t kernel_address, ConstString &name)
 
- Public Member Functions inherited from lldb_private::CPPLanguageRuntime
LibCppStdFunctionCallableInfo FindLibCppStdFunctionCallableInfo (lldb::ValueObjectSP &valobj_sp)
 
 ~CPPLanguageRuntime () override
 
lldb::LanguageType GetLanguageType () const override
 
bool GetObjectDescription (Stream &str, ValueObject &object) override
 
bool GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) override
 
lldb::ThreadPlanSP GetStepThroughTrampolinePlan (Thread &thread, bool stop_others) override
 Obtain a ThreadPlan to get us into C++ constructs such as std::function. More...
 
bool IsAllowedRuntimeValue (ConstString name) override
 Identify whether a name is a runtime value that should not be hidden by from the user interface. More...
 
- Public Member Functions inherited from lldb_private::LanguageRuntime
 ~LanguageRuntime () override
 
virtual CompilerType GetConcreteType (ExecutionContextScope *exe_scope, ConstString abstract_type_name)
 
virtual void SetExceptionBreakpoints ()
 
virtual void ClearExceptionBreakpoints ()
 
virtual bool ExceptionBreakpointsAreSet ()
 
virtual bool ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason)
 
virtual lldb::ValueObjectSP GetExceptionObjectForThread (lldb::ThreadSP thread_sp)
 
virtual lldb::ThreadSP GetBacktraceThreadFromException (lldb::ValueObjectSP thread_sp)
 
ProcessGetProcess ()
 
TargetGetTargetRef ()
 
virtual DeclVendorGetDeclVendor ()
 
virtual lldb::SearchFilterSP CreateExceptionSearchFilter ()
 
virtual bool GetTypeBitSize (const CompilerType &compiler_type, uint64_t &size)
 
virtual void SymbolsDidLoad (const ModuleList &module_list)
 
virtual llvm::Optional< CompilerTypeGetRuntimeType (CompilerType base_type)
 
virtual lldb::addr_t LookupRuntimeSymbol (ConstString name)
 
- Public Member Functions inherited from lldb_private::PluginInterface
virtual ~PluginInterface ()
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static lldb_private::LanguageRuntimeCreateInstance (Process *process, lldb::LanguageType language)
 
static lldb::CommandObjectSP GetCommandObject (CommandInterpreter &interpreter)
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static bool classof (const LanguageRuntime *runtime)
 
static bool IsRenderScriptModule (const lldb::ModuleSP &module_sp)
 
static ModuleKind GetModuleKind (const lldb::ModuleSP &module_sp)
 
static void ModulesDidLoad (const lldb::ProcessSP &process_sp, const ModuleList &module_list)
 
static bool GetKernelCoordinate (lldb_renderscript::RSCoordinate &coord, Thread *thread_ptr)
 
- Static Public Member Functions inherited from lldb_private::CPPLanguageRuntime
static bool classof (const LanguageRuntime *runtime)
 
static CPPLanguageRuntimeGet (Process &process)
 
- Static Public Member Functions inherited from lldb_private::LanguageRuntime
static LanguageRuntimeFindPlugin (Process *process, lldb::LanguageType language)
 
static void InitializeCommands (CommandObject *parent)
 
static lldb::BreakpointSP CreateExceptionBreakpoint (Target &target, lldb::LanguageType language, bool catch_bp, bool throw_bp, bool is_internal=false)
 
static lldb::BreakpointPreconditionSP GetExceptionPrecondition (lldb::LanguageType language, bool throw_bp)
 

Static Public Attributes

static char ID = 0
 
- Static Public Attributes inherited from lldb_private::CPPLanguageRuntime
static char ID = 0
 
- Static Public Attributes inherited from lldb_private::LanguageRuntime
static char ID = 0
 

Protected Types

typedef void(RenderScriptRuntime::* CaptureStateFn) (RuntimeHook *hook_info, ExecutionContext &context)
 
typedef std::shared_ptr< RuntimeHookRuntimeHookSP
 

Protected Member Functions

void InitSearchFilter (lldb::TargetSP target)
 
void FixupScriptDetails (lldb_renderscript::RSModuleDescriptorSP rsmodule_sp)
 
void LoadRuntimeHooks (lldb::ModuleSP module, ModuleKind kind)
 
bool RefreshAllocation (AllocationDetails *alloc, StackFrame *frame_ptr)
 
bool EvalRSExpression (const char *expression, StackFrame *frame_ptr, uint64_t *result)
 
lldb::BreakpointSP CreateScriptGroupBreakpoint (ConstString name, bool multi)
 
lldb::BreakpointSP CreateKernelBreakpoint (ConstString name)
 
lldb::BreakpointSP CreateReductionBreakpoint (ConstString name, int kernel_types)
 
void BreakOnModuleKernels (const lldb_renderscript::RSModuleDescriptorSP rsmodule_sp)
 
- Protected Member Functions inherited from lldb_private::CPPLanguageRuntime
 CPPLanguageRuntime (Process *process)
 
- Protected Member Functions inherited from lldb_private::LanguageRuntime
 LanguageRuntime (Process *process)
 

Protected Attributes

lldb_renderscript::RSScriptGroupList m_scriptGroups
 
lldb::ModuleSP m_libRS
 
lldb::ModuleSP m_libRSDriver
 
lldb::ModuleSP m_libRSCpuRef
 
std::vector< lldb_renderscript::RSModuleDescriptorSPm_rsmodules
 
std::vector< std::unique_ptr< ScriptDetails > > m_scripts
 
std::vector< std::unique_ptr< AllocationDetails > > m_allocations
 
std::map< lldb::addr_t, lldb_renderscript::RSModuleDescriptorSPm_scriptMappings
 
std::map< lldb::addr_t, RuntimeHookSPm_runtimeHooks
 
std::map< lldb::user_id_t, std::unique_ptr< lldb_renderscript::RSCoordinate > > m_conditional_breaks
 
lldb::SearchFilterSP m_filtersp
 
bool m_initiated
 
bool m_debuggerPresentFlagged
 
bool m_breakAllKernels
 
LLVMUserExpression::IRPassesm_ir_passes
 
- Protected Attributes inherited from lldb_private::LanguageRuntime
Processm_process
 

Static Protected Attributes

static const HookDefn s_runtimeHookDefns []
 
static const size_t s_runtimeHookCount
 

Private Member Functions

 RenderScriptRuntime (Process *process)
 
void HookCallback (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureDebugHintScriptGroup2 (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureScriptInit (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureAllocationInit (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureAllocationDestroy (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureSetGlobalVar (RuntimeHook *hook_info, ExecutionContext &context)
 
void CaptureScriptInvokeForEachMulti (RuntimeHook *hook_info, ExecutionContext &context)
 
AllocationDetailsFindAllocByID (Stream &strm, const uint32_t alloc_id)
 
std::shared_ptr< uint8_t > GetAllocationData (AllocationDetails *alloc, StackFrame *frame_ptr)
 
void SetElementSize (Element &elem)
 
void FindStructTypeName (Element &elem, StackFrame *frame_ptr)
 
size_t PopulateElementHeaders (const std::shared_ptr< uint8_t > header_buffer, size_t offset, const Element &elem)
 
size_t CalculateElementHeaderSize (const Element &elem)
 
void SetConditional (lldb::BreakpointSP bp, lldb_private::Stream &messages, const lldb_renderscript::RSCoordinate &coord)
 
bool JITDataPointer (AllocationDetails *alloc, StackFrame *frame_ptr, uint32_t x=0, uint32_t y=0, uint32_t z=0)
 
bool JITTypePointer (AllocationDetails *alloc, StackFrame *frame_ptr)
 
bool JITTypePacked (AllocationDetails *alloc, StackFrame *frame_ptr)
 
bool JITElementPacked (Element &elem, const lldb::addr_t context, StackFrame *frame_ptr)
 
bool JITAllocationSize (AllocationDetails *alloc, StackFrame *frame_ptr)
 
bool JITSubelements (Element &elem, const lldb::addr_t context, StackFrame *frame_ptr)
 
bool JITAllocationStride (AllocationDetails *alloc, StackFrame *frame_ptr)
 
ScriptDetailsLookUpScript (lldb::addr_t address, bool create)
 
AllocationDetailsLookUpAllocation (lldb::addr_t address)
 
AllocationDetailsCreateAllocation (lldb::addr_t address)
 
bool GetIRPasses (LLVMUserExpression::IRPasses &passes) override
 

Static Private Member Functions

static bool HookCallback (void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
 
static bool KernelBreakpointHit (void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
 
static bool GetFrameVarAsUnsigned (const lldb::StackFrameSP, const char *var_name, uint64_t &val)
 

Detailed Description

Definition at line 298 of file RenderScriptRuntime.h.

Member Typedef Documentation

◆ CaptureStateFn

typedef void(RenderScriptRuntime::* lldb_private::RenderScriptRuntime::CaptureStateFn) (RuntimeHook *hook_info, ExecutionContext &context)
protected

Definition at line 456 of file RenderScriptRuntime.h.

◆ RuntimeHookSP

Definition at line 475 of file RenderScriptRuntime.h.

Member Enumeration Documentation

◆ ModuleKind

Enumerator
eModuleKindIgnored 
eModuleKindLibRS 
eModuleKindDriver 
eModuleKindImpl 
eModuleKindKernelObj 

Definition at line 300 of file RenderScriptRuntime.h.

Constructor & Destructor Documentation

◆ ~RenderScriptRuntime()

RenderScriptRuntime::~RenderScriptRuntime ( )
overridedefault

Referenced by GetCommandObject().

◆ RenderScriptRuntime()

RenderScriptRuntime::RenderScriptRuntime ( Process process)
private

Member Function Documentation

◆ BreakOnModuleKernels()

void RenderScriptRuntime::BreakOnModuleKernels ( const lldb_renderscript::RSModuleDescriptorSP  rsmodule_sp)
protected

Definition at line 3454 of file RenderScriptRuntime.cpp.

◆ CalculateElementHeaderSize()

size_t RenderScriptRuntime::CalculateElementHeaderSize ( const Element elem)
private

◆ CaptureAllocationDestroy()

void RenderScriptRuntime::CaptureAllocationDestroy ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ CaptureAllocationInit()

void RenderScriptRuntime::CaptureAllocationInit ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ CaptureDebugHintScriptGroup2()

void RenderScriptRuntime::CaptureDebugHintScriptGroup2 ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ CaptureScriptInit()

void RenderScriptRuntime::CaptureScriptInit ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ CaptureScriptInvokeForEachMulti()

void RenderScriptRuntime::CaptureScriptInvokeForEachMulti ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ CaptureSetGlobalVar()

void RenderScriptRuntime::CaptureSetGlobalVar ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ classof()

static bool lldb_private::RenderScriptRuntime::classof ( const LanguageRuntime runtime)
inlinestatic

Definition at line 329 of file RenderScriptRuntime.h.

References lldb_private::LanguageRuntime::isA().

◆ CouldHaveDynamicValue()

bool RenderScriptRuntime::CouldHaveDynamicValue ( ValueObject in_value)
overridevirtual

Implements lldb_private::LanguageRuntime.

Definition at line 1037 of file RenderScriptRuntime.cpp.

◆ CreateAllocation()

RenderScriptRuntime::AllocationDetails * RenderScriptRuntime::CreateAllocation ( lldb::addr_t  address)
private

◆ CreateExceptionResolver()

lldb::BreakpointResolverSP RenderScriptRuntime::CreateExceptionResolver ( const lldb::BreakpointSP &  bp,
bool  catch_bp,
bool  throw_bp 
)
overridevirtual

◆ CreateInstance()

LanguageRuntime * RenderScriptRuntime::CreateInstance ( Process process,
lldb::LanguageType  language 
)
static

Definition at line 780 of file RenderScriptRuntime.cpp.

References lldb::eLanguageTypeExtRenderScript.

◆ CreateKernelBreakpoint()

BreakpointSP RenderScriptRuntime::CreateKernelBreakpoint ( ConstString  name)
protected

◆ CreateReductionBreakpoint()

BreakpointSP RenderScriptRuntime::CreateReductionBreakpoint ( ConstString  name,
int  kernel_types 
)
protected

◆ CreateScriptGroupBreakpoint()

BreakpointSP RenderScriptRuntime::CreateScriptGroupBreakpoint ( ConstString  name,
bool  multi 
)
protected

◆ DumpAllocation()

bool RenderScriptRuntime::DumpAllocation ( Stream strm,
StackFrame frame_ptr,
const uint32_t  id 
)

◆ DumpContexts()

void RenderScriptRuntime::DumpContexts ( Stream strm) const

◆ DumpKernels()

void RenderScriptRuntime::DumpKernels ( Stream strm) const

◆ DumpModules()

void RenderScriptRuntime::DumpModules ( Stream strm) const

◆ DumpStatus()

void RenderScriptRuntime::DumpStatus ( Stream strm) const

◆ EvalRSExpression()

bool RenderScriptRuntime::EvalRSExpression ( const char *  expression,
StackFrame frame_ptr,
uint64_t *  result 
)
protected

◆ FindAllocByID()

RenderScriptRuntime::AllocationDetails * RenderScriptRuntime::FindAllocByID ( Stream strm,
const uint32_t  alloc_id 
)
private

◆ FindStructTypeName()

void RenderScriptRuntime::FindStructTypeName ( Element elem,
StackFrame frame_ptr 
)
private

◆ FixUpDynamicType()

TypeAndOrName RenderScriptRuntime::FixUpDynamicType ( const TypeAndOrName type_and_or_name,
ValueObject static_value 
)
overridevirtual

Implements lldb_private::LanguageRuntime.

Definition at line 1032 of file RenderScriptRuntime.cpp.

◆ FixupScriptDetails()

void RenderScriptRuntime::FixupScriptDetails ( lldb_renderscript::RSModuleDescriptorSP  rsmodule_sp)
protected

◆ GetAllocationData()

std::shared_ptr< uint8_t > RenderScriptRuntime::GetAllocationData ( AllocationDetails alloc,
StackFrame frame_ptr 
)
private

◆ GetCommandObject()

lldb::CommandObjectSP RenderScriptRuntime::GetCommandObject ( lldb_private::CommandInterpreter interpreter)
static

Definition at line 4945 of file RenderScriptRuntime.cpp.

References ~RenderScriptRuntime().

◆ GetDynamicTypeAndAddress()

bool RenderScriptRuntime::GetDynamicTypeAndAddress ( ValueObject in_value,
lldb::DynamicValueType  use_dynamic,
TypeAndOrName class_type_or_name,
Address address,
Value::ValueType value_type 
)
overridevirtual

Implements lldb_private::LanguageRuntime.

Definition at line 1024 of file RenderScriptRuntime.cpp.

◆ GetFrameVarAsUnsigned()

bool RenderScriptRuntime::GetFrameVarAsUnsigned ( const lldb::StackFrameSP  ,
const char *  var_name,
uint64_t &  val 
)
staticprivate

◆ GetIRPasses()

bool lldb_private::RenderScriptRuntime::GetIRPasses ( LLVMUserExpression::IRPasses passes)
overrideprivatevirtual

◆ GetKernelCoordinate()

bool RenderScriptRuntime::GetKernelCoordinate ( lldb_renderscript::RSCoordinate coord,
Thread thread_ptr 
)
static

◆ GetModuleKind()

RenderScriptRuntime::ModuleKind RenderScriptRuntime::GetModuleKind ( const lldb::ModuleSP &  module_sp)
static

Definition at line 976 of file RenderScriptRuntime.cpp.

◆ GetOverrideExprOptions()

bool lldb_private::RenderScriptRuntime::GetOverrideExprOptions ( clang::TargetOptions &  prototype)

Definition at line 159 of file RenderScriptExpressionOpts.cpp.

◆ GetPluginName()

lldb_private::ConstString RenderScriptRuntime::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 1018 of file RenderScriptRuntime.cpp.

◆ GetPluginNameStatic()

lldb_private::ConstString RenderScriptRuntime::GetPluginNameStatic ( )
static

Definition at line 970 of file RenderScriptRuntime.cpp.

◆ GetPluginVersion()

uint32_t RenderScriptRuntime::GetPluginVersion ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 1022 of file RenderScriptRuntime.cpp.

◆ GetScriptGroups()

const lldb_renderscript::RSScriptGroupList& lldb_private::RenderScriptRuntime::GetScriptGroups ( ) const
inline

◆ HookCallback() [1/2]

bool RenderScriptRuntime::HookCallback ( void *  baton,
StoppointCallbackContext ctx,
lldb::user_id_t  break_id,
lldb::user_id_t  break_loc_id 
)
staticprivate

◆ HookCallback() [2/2]

void RenderScriptRuntime::HookCallback ( RuntimeHook hook_info,
ExecutionContext context 
)
private

◆ Initialize()

void RenderScriptRuntime::Initialize ( )
static

Definition at line 960 of file RenderScriptRuntime.cpp.

◆ Initiate()

void RenderScriptRuntime::Initiate ( )

Definition at line 4936 of file RenderScriptRuntime.cpp.

◆ InitSearchFilter()

void lldb_private::RenderScriptRuntime::InitSearchFilter ( lldb::TargetSP  target)
inlineprotected

Definition at line 429 of file RenderScriptRuntime.h.

◆ isA()

bool lldb_private::RenderScriptRuntime::isA ( const void *  ClassID) const
inlineoverridevirtual

Reimplemented from lldb_private::CPPLanguageRuntime.

Definition at line 325 of file RenderScriptRuntime.h.

◆ IsKnownKernel()

bool lldb_private::RenderScriptRuntime::IsKnownKernel ( ConstString  name)
inline

Definition at line 402 of file RenderScriptRuntime.h.

◆ IsRenderScriptModule()

bool RenderScriptRuntime::IsRenderScriptModule ( const lldb::ModuleSP &  module_sp)
static

Definition at line 1000 of file RenderScriptRuntime.cpp.

◆ JITAllocationSize()

bool RenderScriptRuntime::JITAllocationSize ( AllocationDetails alloc,
StackFrame frame_ptr 
)
private

◆ JITAllocationStride()

bool RenderScriptRuntime::JITAllocationStride ( AllocationDetails alloc,
StackFrame frame_ptr 
)
private

◆ JITDataPointer()

bool RenderScriptRuntime::JITDataPointer ( AllocationDetails alloc,
StackFrame frame_ptr,
uint32_t  x = 0,
uint32_t  y = 0,
uint32_t  z = 0 
)
private

◆ JITElementPacked()

bool RenderScriptRuntime::JITElementPacked ( Element elem,
const lldb::addr_t  context,
StackFrame frame_ptr 
)
private

◆ JITSubelements()

bool RenderScriptRuntime::JITSubelements ( Element elem,
const lldb::addr_t  context,
StackFrame frame_ptr 
)
private

◆ JITTypePacked()

bool RenderScriptRuntime::JITTypePacked ( AllocationDetails alloc,
StackFrame frame_ptr 
)
private

◆ JITTypePointer()

bool RenderScriptRuntime::JITTypePointer ( AllocationDetails alloc,
StackFrame frame_ptr 
)
private

◆ KernelBreakpointHit()

bool RenderScriptRuntime::KernelBreakpointHit ( void *  baton,
StoppointCallbackContext ctx,
lldb::user_id_t  break_id,
lldb::user_id_t  break_loc_id 
)
staticprivate

◆ ListAllocations()

void RenderScriptRuntime::ListAllocations ( Stream strm,
StackFrame frame_ptr,
const uint32_t  index 
)

◆ LoadAllocation()

bool RenderScriptRuntime::LoadAllocation ( Stream strm,
const uint32_t  alloc_id,
const char *  filename,
StackFrame frame_ptr 
)

◆ LoadModule()

bool RenderScriptRuntime::LoadModule ( const lldb::ModuleSP &  module_sp)

◆ LoadRuntimeHooks()

void RenderScriptRuntime::LoadRuntimeHooks ( lldb::ModuleSP  module,
ModuleKind  kind 
)
protected

◆ LookUpAllocation()

RenderScriptRuntime::AllocationDetails * RenderScriptRuntime::LookUpAllocation ( lldb::addr_t  address)
private

Definition at line 3844 of file RenderScriptRuntime.cpp.

◆ LookUpScript()

RenderScriptRuntime::ScriptDetails * RenderScriptRuntime::LookUpScript ( lldb::addr_t  address,
bool  create 
)
private

Definition at line 3828 of file RenderScriptRuntime.cpp.

◆ ModulesDidLoad() [1/2]

static void lldb_private::RenderScriptRuntime::ModulesDidLoad ( const lldb::ProcessSP &  process_sp,
const ModuleList module_list 
)
static

Referenced by RenderScriptRuntime().

◆ ModulesDidLoad() [2/2]

void RenderScriptRuntime::ModulesDidLoad ( const ModuleList module_list)
overridevirtual

◆ PlaceBreakpointOnKernel()

bool RenderScriptRuntime::PlaceBreakpointOnKernel ( lldb::TargetSP  target,
Stream messages,
const char *  name,
const lldb_renderscript::RSCoordinate coords = nullptr 
)

◆ PlaceBreakpointOnReduction()

bool RenderScriptRuntime::PlaceBreakpointOnReduction ( lldb::TargetSP  target,
Stream messages,
const char *  reduce_name,
const lldb_renderscript::RSCoordinate coords = nullptr,
int  kernel_types = ~(0) 
)

◆ PlaceBreakpointOnScriptGroup()

bool RenderScriptRuntime::PlaceBreakpointOnScriptGroup ( lldb::TargetSP  target,
Stream strm,
ConstString  name,
bool  stop_on_all 
)

◆ PopulateElementHeaders()

size_t RenderScriptRuntime::PopulateElementHeaders ( const std::shared_ptr< uint8_t >  header_buffer,
size_t  offset,
const Element elem 
)
private

◆ RecomputeAllAllocations()

bool RenderScriptRuntime::RecomputeAllAllocations ( Stream strm,
StackFrame frame_ptr 
)

◆ RefreshAllocation()

bool RenderScriptRuntime::RefreshAllocation ( AllocationDetails alloc,
StackFrame frame_ptr 
)
protected

◆ ResolveKernelName()

bool RenderScriptRuntime::ResolveKernelName ( lldb::addr_t  kernel_address,
ConstString name 
)

◆ SaveAllocation()

bool RenderScriptRuntime::SaveAllocation ( Stream strm,
const uint32_t  alloc_id,
const char *  filename,
StackFrame frame_ptr 
)

◆ SetBreakAllKernels()

void RenderScriptRuntime::SetBreakAllKernels ( bool  do_break,
lldb::TargetSP  target 
)

◆ SetConditional()

void RenderScriptRuntime::SetConditional ( lldb::BreakpointSP  bp,
lldb_private::Stream messages,
const lldb_renderscript::RSCoordinate coord 
)
private

◆ SetElementSize()

void RenderScriptRuntime::SetElementSize ( Element elem)
private

◆ Terminate()

void RenderScriptRuntime::Terminate ( )
static

Definition at line 966 of file RenderScriptRuntime.cpp.

◆ Update()

void RenderScriptRuntime::Update ( )

Definition at line 2837 of file RenderScriptRuntime.cpp.

Member Data Documentation

◆ ID

char RenderScriptRuntime::ID = 0
static

Definition at line 323 of file RenderScriptRuntime.h.

◆ m_allocations

std::vector<std::unique_ptr<AllocationDetails> > lldb_private::RenderScriptRuntime::m_allocations
protected

Definition at line 483 of file RenderScriptRuntime.h.

◆ m_breakAllKernels

bool lldb_private::RenderScriptRuntime::m_breakAllKernels
protected

Definition at line 496 of file RenderScriptRuntime.h.

◆ m_conditional_breaks

std::map<lldb::user_id_t, std::unique_ptr<lldb_renderscript::RSCoordinate> > lldb_private::RenderScriptRuntime::m_conditional_breaks
protected

Definition at line 489 of file RenderScriptRuntime.h.

◆ m_debuggerPresentFlagged

bool lldb_private::RenderScriptRuntime::m_debuggerPresentFlagged
protected

Definition at line 495 of file RenderScriptRuntime.h.

◆ m_filtersp

lldb::SearchFilterSP lldb_private::RenderScriptRuntime::m_filtersp
protected

Definition at line 492 of file RenderScriptRuntime.h.

◆ m_initiated

bool lldb_private::RenderScriptRuntime::m_initiated
protected

Definition at line 494 of file RenderScriptRuntime.h.

◆ m_ir_passes

LLVMUserExpression::IRPasses* lldb_private::RenderScriptRuntime::m_ir_passes
protected

Definition at line 499 of file RenderScriptRuntime.h.

◆ m_libRS

lldb::ModuleSP lldb_private::RenderScriptRuntime::m_libRS
protected

Definition at line 477 of file RenderScriptRuntime.h.

◆ m_libRSCpuRef

lldb::ModuleSP lldb_private::RenderScriptRuntime::m_libRSCpuRef
protected

Definition at line 479 of file RenderScriptRuntime.h.

◆ m_libRSDriver

lldb::ModuleSP lldb_private::RenderScriptRuntime::m_libRSDriver
protected

Definition at line 478 of file RenderScriptRuntime.h.

◆ m_rsmodules

std::vector<lldb_renderscript::RSModuleDescriptorSP> lldb_private::RenderScriptRuntime::m_rsmodules
protected

Definition at line 480 of file RenderScriptRuntime.h.

◆ m_runtimeHooks

std::map<lldb::addr_t, RuntimeHookSP> lldb_private::RenderScriptRuntime::m_runtimeHooks
protected

Definition at line 487 of file RenderScriptRuntime.h.

◆ m_scriptGroups

lldb_renderscript::RSScriptGroupList lldb_private::RenderScriptRuntime::m_scriptGroups
protected

Definition at line 425 of file RenderScriptRuntime.h.

◆ m_scriptMappings

std::map<lldb::addr_t, lldb_renderscript::RSModuleDescriptorSP> lldb_private::RenderScriptRuntime::m_scriptMappings
protected

Definition at line 486 of file RenderScriptRuntime.h.

◆ m_scripts

std::vector<std::unique_ptr<ScriptDetails> > lldb_private::RenderScriptRuntime::m_scripts
protected

Definition at line 482 of file RenderScriptRuntime.h.

◆ s_runtimeHookCount

const size_t RenderScriptRuntime::s_runtimeHookCount
staticprotected
Initial value:
=

Definition at line 498 of file RenderScriptRuntime.h.

◆ s_runtimeHookDefns

const RenderScriptRuntime::HookDefn RenderScriptRuntime::s_runtimeHookDefns
staticprotected

Definition at line 497 of file RenderScriptRuntime.h.


The documentation for this class was generated from the following files: