LLDB  mainline
RenderScriptRuntime.h
Go to the documentation of this file.
1 //===-- RenderScriptRuntime.h -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_RENDERSCRIPT_RENDERSCRIPTRUNTIME_RENDERSCRIPTRUNTIME_H
10 #define LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_RENDERSCRIPT_RENDERSCRIPTRUNTIME_RENDERSCRIPTRUNTIME_H
11 
12 #include <array>
13 #include <map>
14 #include <memory>
15 #include <string>
16 #include <vector>
17 
18 #include "llvm/ADT/SmallVector.h"
19 #include "llvm/ADT/StringRef.h"
20 #include "lldb/Core/Module.h"
23 #include "lldb/lldb-private.h"
24 
26 
27 namespace clang {
28 class TargetOptions;
29 }
30 
31 namespace lldb_private {
32 namespace lldb_renderscript {
33 
34 typedef uint32_t RSSlot;
35 class RSModuleDescriptor;
36 struct RSGlobalDescriptor;
37 struct RSKernelDescriptor;
40 
41 typedef std::shared_ptr<RSModuleDescriptor> RSModuleDescriptorSP;
42 typedef std::shared_ptr<RSGlobalDescriptor> RSGlobalDescriptorSP;
43 typedef std::shared_ptr<RSKernelDescriptor> RSKernelDescriptorSP;
44 typedef std::shared_ptr<RSScriptGroupDescriptor> RSScriptGroupDescriptorSP;
45 
46 struct RSCoordinate {
47  uint32_t x = 0, y = 0, z = 0;
48 
49  RSCoordinate() = default;
50 
52  return x == rhs.x && y == rhs.y && z == rhs.z;
53  }
54 };
55 
56 // Breakpoint Resolvers decide where a breakpoint is placed, so having our own
57 // allows us to limit the search scope to RS kernel modules. As well as check
58 // for .expand kernels as a fallback.
60 public:
61  RSBreakpointResolver(const lldb::BreakpointSP &bp, ConstString name)
63  m_kernel_name(name) {}
64 
65  void GetDescription(Stream *strm) override {
66  if (strm)
67  strm->Printf("RenderScript kernel breakpoint for '%s'",
69  }
70 
71  void Dump(Stream *s) const override {}
72 
74  SymbolContext &context,
75  Address *addr) override;
76 
78 
79  lldb::BreakpointResolverSP
80  CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override {
81  lldb::BreakpointResolverSP ret_sp(
82  new RSBreakpointResolver(breakpoint, m_kernel_name));
83  return ret_sp;
84  }
85 
86 protected:
88 };
89 
91 public:
95  eKernelTypeAccum = (1 << 0),
96  eKernelTypeInit = (1 << 1),
97  eKernelTypeComb = (1 << 2),
98  eKernelTypeOutC = (1 << 3),
99  eKernelTypeHalter = (1 << 4)
100  };
101 
103  const lldb::BreakpointSP &breakpoint, ConstString reduce_name,
104  std::vector<lldb_renderscript::RSModuleDescriptorSP> *rs_modules,
105  int kernel_types = eKernelTypeAll)
107  m_reduce_name(reduce_name), m_rsmodules(rs_modules),
108  m_kernel_types(kernel_types) {
109  // The reduce breakpoint resolver handles adding breakpoints for named
110  // reductions.
111  // Breakpoints will be resolved for all constituent kernels in the named
112  // reduction
113  }
114 
115  void GetDescription(Stream *strm) override {
116  if (strm)
117  strm->Printf("RenderScript reduce breakpoint for '%s'",
119  }
120 
121  void Dump(Stream *s) const override {}
122 
124  SymbolContext &context,
125  Address *addr) override;
126 
128 
129  lldb::BreakpointResolverSP
130  CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override {
131  lldb::BreakpointResolverSP ret_sp(new RSReduceBreakpointResolver(
132  breakpoint, m_reduce_name, m_rsmodules, m_kernel_types));
133  return ret_sp;
134  }
135 
136 private:
137  ConstString m_reduce_name; // The name of the reduction
138  std::vector<lldb_renderscript::RSModuleDescriptorSP> *m_rsmodules;
140 };
141 
143 public:
144  RSKernelDescriptor(const RSModuleDescriptor *module, llvm::StringRef name,
145  uint32_t slot)
146  : m_module(module), m_name(name), m_slot(slot) {}
147 
148  void Dump(Stream &strm) const;
149 
153 };
154 
156 public:
157  RSGlobalDescriptor(const RSModuleDescriptor *module, llvm::StringRef name)
158  : m_module(module), m_name(name) {}
159 
160  void Dump(Stream &strm) const;
161 
164 };
165 
168  uint32_t accum_data_size, llvm::StringRef name,
169  llvm::StringRef init_name, llvm::StringRef accum_name,
170  llvm::StringRef comb_name, llvm::StringRef outc_name,
171  llvm::StringRef halter_name = ".")
172  : m_module(module), m_reduce_name(name), m_init_name(init_name),
173  m_accum_name(accum_name), m_comb_name(comb_name),
174  m_outc_name(outc_name), m_halter_name(halter_name) {
175  // TODO Check whether the combiner is an autogenerated name, and track
176  // this
177  }
178 
179  void Dump(Stream &strm) const;
180 
182  ConstString m_reduce_name; // This is the name given to the general reduction
183  // as a group as passed to pragma
184  // reduce(m_reduce_name). There is no kernel function with this name
185  ConstString m_init_name; // The name of the initializer name. "." if no
186  // initializer given
187  ConstString m_accum_name; // The accumulator function name. "." if not given
188  ConstString m_comb_name; // The name of the combiner function. If this was not
189  // given, a name is generated by the
190  // compiler. TODO
191  ConstString m_outc_name; // The name of the outconverter
192 
193  ConstString m_halter_name; // The name of the halter function. XXX This is not
194  // yet specified by the RenderScript
195  // compiler or runtime, and its semantics and existence is still under
196  // discussion by the
197  // RenderScript Contributors
198  RSSlot m_accum_sig; // metatdata signature for this reduction (bitwise mask of
199  // type information (see
200  // libbcc/include/bcinfo/MetadataExtractor.h
201  uint32_t m_accum_data_size; // Data size of the accumulator function input
202  bool m_comb_name_generated; // Was the combiner name generated by the compiler
203 };
204 
208 
209  bool ParseVersionInfo(llvm::StringRef *, size_t n_lines);
210 
211  bool ParseExportForeachCount(llvm::StringRef *, size_t n_lines);
212 
213  bool ParseExportVarCount(llvm::StringRef *, size_t n_lines);
214 
215  bool ParseExportReduceCount(llvm::StringRef *, size_t n_lines);
216 
217  bool ParseBuildChecksum(llvm::StringRef *, size_t n_lines);
218 
219  bool ParsePragmaCount(llvm::StringRef *, size_t n_lines);
220 
221 public:
222  RSModuleDescriptor(const lldb::ModuleSP &module) : m_module(module) {}
223 
224  ~RSModuleDescriptor() = default;
225 
226  bool ParseRSInfo();
227 
228  void Dump(Stream &strm) const;
229 
230  void WarnIfVersionMismatch(Stream *s) const;
231 
232  const lldb::ModuleSP m_module;
233  std::vector<RSKernelDescriptor> m_kernels;
234  std::vector<RSGlobalDescriptor> m_globals;
235  std::vector<RSReductionDescriptor> m_reductions;
236  std::map<std::string, std::string> m_pragmas;
238 };
239 
241  struct Kernel {
244  };
246  std::vector<Kernel> m_kernels;
247 };
248 
249 typedef std::vector<RSScriptGroupDescriptorSP> RSScriptGroupList;
250 
252 public:
253  RSScriptGroupBreakpointResolver(const lldb::BreakpointSP &bp,
254  ConstString name,
255  const RSScriptGroupList &groups,
256  bool stop_on_all)
258  m_group_name(name), m_script_groups(groups),
259  m_stop_on_all(stop_on_all) {}
260 
261  void GetDescription(Stream *strm) override {
262  if (strm)
263  strm->Printf("RenderScript ScriptGroup breakpoint for '%s'",
265  }
266 
267  void Dump(Stream *s) const override {}
268 
270  SymbolContext &context,
271  Address *addr) override;
272 
274 
275  lldb::BreakpointResolverSP
276  CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override {
277  lldb::BreakpointResolverSP ret_sp(new RSScriptGroupBreakpointResolver(
279  return ret_sp;
280  }
281 
282 protected:
285  for (auto sg : m_script_groups) {
286  if (ConstString::Compare(sg->m_name, name) == 0)
287  return sg;
288  }
289  return RSScriptGroupDescriptorSP();
290  }
291 
295 };
296 } // namespace lldb_renderscript
297 
299 public:
300  enum ModuleKind {
306  };
307 
308  ~RenderScriptRuntime() override;
309 
310  // Static Functions
311  static void Initialize();
312 
313  static void Terminate();
314 
316  CreateInstance(Process *process, lldb::LanguageType language);
317 
318  static lldb::CommandObjectSP
319  GetCommandObject(CommandInterpreter &interpreter);
320 
321  static llvm::StringRef GetPluginNameStatic() { return "renderscript"; }
322 
323  static char ID;
324 
325  bool isA(const void *ClassID) const override {
326  return ClassID == &ID || CPPLanguageRuntime::isA(ClassID);
327  }
328 
329  static bool classof(const LanguageRuntime *runtime) {
330  return runtime->isA(&ID);
331  }
332 
333  static bool IsRenderScriptModule(const lldb::ModuleSP &module_sp);
334 
335  static ModuleKind GetModuleKind(const lldb::ModuleSP &module_sp);
336 
337  static void ModulesDidLoad(const lldb::ProcessSP &process_sp,
338  const ModuleList &module_list);
339 
340  bool GetDynamicTypeAndAddress(ValueObject &in_value,
341  lldb::DynamicValueType use_dynamic,
342  TypeAndOrName &class_type_or_name,
343  Address &address,
344  Value::ValueType &value_type) override;
345 
346  TypeAndOrName FixUpDynamicType(const TypeAndOrName &type_and_or_name,
347  ValueObject &static_value) override;
348 
349  bool CouldHaveDynamicValue(ValueObject &in_value) override;
350 
351  lldb::BreakpointResolverSP
352  CreateExceptionResolver(const lldb::BreakpointSP &bp,
353  bool catch_bp, bool throw_bp) override;
354 
355  bool LoadModule(const lldb::ModuleSP &module_sp);
356 
357  void DumpModules(Stream &strm) const;
358 
359  void DumpContexts(Stream &strm) const;
360 
361  void DumpKernels(Stream &strm) const;
362 
363  bool DumpAllocation(Stream &strm, StackFrame *frame_ptr, const uint32_t id);
364 
365  void ListAllocations(Stream &strm, StackFrame *frame_ptr,
366  const uint32_t index);
367 
368  bool RecomputeAllAllocations(Stream &strm, StackFrame *frame_ptr);
369 
371  lldb::TargetSP target, Stream &messages, const char *name,
372  const lldb_renderscript::RSCoordinate *coords = nullptr);
373 
375  lldb::TargetSP target, Stream &messages, const char *reduce_name,
376  const lldb_renderscript::RSCoordinate *coords = nullptr,
377  int kernel_types = ~(0));
378 
379  bool PlaceBreakpointOnScriptGroup(lldb::TargetSP target, Stream &strm,
380  ConstString name, bool stop_on_all);
381 
382  void SetBreakAllKernels(bool do_break, lldb::TargetSP target);
383 
384  void DumpStatus(Stream &strm) const;
385 
386  void ModulesDidLoad(const ModuleList &module_list) override;
387 
388  bool LoadAllocation(Stream &strm, const uint32_t alloc_id,
389  const char *filename, StackFrame *frame_ptr);
390 
391  bool SaveAllocation(Stream &strm, const uint32_t alloc_id,
392  const char *filename, StackFrame *frame_ptr);
393 
394  void Update();
395 
396  void Initiate();
397 
399  return m_scriptGroups;
400  };
401 
403  for (const auto &module : m_rsmodules)
404  for (const auto &kernel : module->m_kernels)
405  if (kernel.m_name == name)
406  return true;
407  return false;
408  }
409 
410  bool GetOverrideExprOptions(clang::TargetOptions &prototype);
411 
412  // PluginInterface protocol
413  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
414 
416  Thread *thread_ptr);
417 
418  bool ResolveKernelName(lldb::addr_t kernel_address, ConstString &name);
419 
420 protected:
421  struct ScriptDetails;
422  struct AllocationDetails;
423  struct Element;
424 
426 
427  void InitSearchFilter(lldb::TargetSP target) {
428  if (!m_filtersp)
429  m_filtersp =
430  std::make_shared<SearchFilterForUnconstrainedSearches>(target);
431  }
432 
434 
435  void LoadRuntimeHooks(lldb::ModuleSP module, ModuleKind kind);
436 
437  bool RefreshAllocation(AllocationDetails *alloc, StackFrame *frame_ptr);
438 
439  bool EvalRSExpression(const char *expression, StackFrame *frame_ptr,
440  uint64_t *result);
441 
442  lldb::BreakpointSP CreateScriptGroupBreakpoint(ConstString name,
443  bool multi);
444 
445  lldb::BreakpointSP CreateKernelBreakpoint(ConstString name);
446 
447  lldb::BreakpointSP CreateReductionBreakpoint(ConstString name,
448  int kernel_types);
449 
451  const lldb_renderscript::RSModuleDescriptorSP rsmodule_sp);
452 
453  struct RuntimeHook;
455  RuntimeHook *hook_info,
456  ExecutionContext &context); // Please do this!
457 
458  struct HookDefn {
459  const char *name;
460  const char *symbol_name_m32; // mangled name for the 32 bit architectures
461  const char *symbol_name_m64; // mangled name for the 64 bit archs
465  };
466 
467  struct RuntimeHook {
469  const HookDefn *defn;
470  lldb::BreakpointSP bp_sp;
471  };
472 
473  typedef std::shared_ptr<RuntimeHook> RuntimeHookSP;
474 
475  lldb::ModuleSP m_libRS;
476  lldb::ModuleSP m_libRSDriver;
477  lldb::ModuleSP m_libRSCpuRef;
478  std::vector<lldb_renderscript::RSModuleDescriptorSP> m_rsmodules;
479 
480  std::vector<std::unique_ptr<ScriptDetails>> m_scripts;
481  std::vector<std::unique_ptr<AllocationDetails>> m_allocations;
482 
483  std::map<lldb::addr_t, lldb_renderscript::RSModuleDescriptorSP>
485  std::map<lldb::addr_t, RuntimeHookSP> m_runtimeHooks;
486  std::map<lldb::user_id_t, std::unique_ptr<lldb_renderscript::RSCoordinate>>
488 
489  lldb::SearchFilterSP
490  m_filtersp; // Needed to create breakpoints through Target API
491 
495  static const HookDefn s_runtimeHookDefns[];
496  static const size_t s_runtimeHookCount;
498 
499 private:
500  RenderScriptRuntime(Process *process); // Call CreateInstance instead.
501 
502  static bool HookCallback(void *baton, StoppointCallbackContext *ctx,
503  lldb::user_id_t break_id,
504  lldb::user_id_t break_loc_id);
505 
506  static bool KernelBreakpointHit(void *baton, StoppointCallbackContext *ctx,
507  lldb::user_id_t break_id,
508  lldb::user_id_t break_loc_id);
509 
510  void HookCallback(RuntimeHook *hook_info, ExecutionContext &context);
511 
512  // Callback function when 'debugHintScriptGroup2' executes on the target.
514  ExecutionContext &context);
515 
516  void CaptureScriptInit(RuntimeHook *hook_info, ExecutionContext &context);
517 
518  void CaptureAllocationInit(RuntimeHook *hook_info, ExecutionContext &context);
519 
520  void CaptureAllocationDestroy(RuntimeHook *hook_info,
521  ExecutionContext &context);
522 
523  void CaptureSetGlobalVar(RuntimeHook *hook_info, ExecutionContext &context);
524 
526  ExecutionContext &context);
527 
528  AllocationDetails *FindAllocByID(Stream &strm, const uint32_t alloc_id);
529 
530  std::shared_ptr<uint8_t> GetAllocationData(AllocationDetails *alloc,
531  StackFrame *frame_ptr);
532 
533  void SetElementSize(Element &elem);
534 
535  static bool GetFrameVarAsUnsigned(const lldb::StackFrameSP,
536  const char *var_name, uint64_t &val);
537 
538  void FindStructTypeName(Element &elem, StackFrame *frame_ptr);
539 
540  size_t PopulateElementHeaders(const std::shared_ptr<uint8_t> header_buffer,
541  size_t offset, const Element &elem);
542 
543  size_t CalculateElementHeaderSize(const Element &elem);
544 
545  void SetConditional(lldb::BreakpointSP bp, lldb_private::Stream &messages,
546  const lldb_renderscript::RSCoordinate &coord);
547  //
548  // Helper functions for jitting the runtime
549  //
550 
551  bool JITDataPointer(AllocationDetails *alloc, StackFrame *frame_ptr,
552  uint32_t x = 0, uint32_t y = 0, uint32_t z = 0);
553 
554  bool JITTypePointer(AllocationDetails *alloc, StackFrame *frame_ptr);
555 
556  bool JITTypePacked(AllocationDetails *alloc, StackFrame *frame_ptr);
557 
558  bool JITElementPacked(Element &elem, const lldb::addr_t context,
559  StackFrame *frame_ptr);
560 
561  bool JITAllocationSize(AllocationDetails *alloc, StackFrame *frame_ptr);
562 
563  bool JITSubelements(Element &elem, const lldb::addr_t context,
564  StackFrame *frame_ptr);
565 
566  bool JITAllocationStride(AllocationDetails *alloc, StackFrame *frame_ptr);
567 
568  // Search for a script detail object using a target address.
569  // If a script does not currently exist this function will return nullptr.
570  // If 'create' is true and there is no previous script with this address,
571  // then a new Script detail object will be created for this address and
572  // returned.
573  ScriptDetails *LookUpScript(lldb::addr_t address, bool create);
574 
575  // Search for a previously saved allocation detail object using a target
576  // address.
577  // If an allocation does not exist for this address then nullptr will be
578  // returned.
580 
581  // Creates a new allocation with the specified address assigning a new ID and
582  // removes
583  // any previous stored allocation which has the same address.
585 
586  bool GetIRPasses(LLVMUserExpression::IRPasses &passes) override;
587 };
588 
589 } // namespace lldb_private
590 
591 #endif // LLDB_SOURCE_PLUGINS_LANGUAGERUNTIME_RENDERSCRIPT_RENDERSCRIPTRUNTIME_RENDERSCRIPTRUNTIME_H
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::CopyForBreakpoint
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
Definition: RenderScriptRuntime.h:276
lldb_private::RenderScriptRuntime::m_ir_passes
LLVMUserExpression::IRPasses * m_ir_passes
Definition: RenderScriptRuntime.h:497
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::RSReduceBreakpointResolver
RSReduceBreakpointResolver(const lldb::BreakpointSP &breakpoint, ConstString reduce_name, std::vector< lldb_renderscript::RSModuleDescriptorSP > *rs_modules, int kernel_types=eKernelTypeAll)
Definition: RenderScriptRuntime.h:102
lldb_private::RenderScriptRuntime::JITTypePacked
bool JITTypePacked(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:1894
lldb_private::RenderScriptRuntime::IsKnownKernel
bool IsKnownKernel(ConstString name)
Definition: RenderScriptRuntime.h:402
lldb_private::lldb_renderscript::RSModuleDescriptor::m_resname
std::string m_resname
Definition: RenderScriptRuntime.h:237
lldb_private::RenderScriptRuntime::Element
Definition: RenderScriptRuntime.cpp:511
lldb::SearchDepth
SearchDepth
Definition: lldb-enumerations.h:283
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeComb
@ eKernelTypeComb
Definition: RenderScriptRuntime.h:97
lldb_private::RenderScriptRuntime::HookCallback
static bool HookCallback(void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
Definition: RenderScriptRuntime.cpp:1091
lldb_private::StoppointCallbackContext
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
Definition: StoppointCallbackContext.h:26
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::SearchCallback
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
Definition: RenderScriptRuntime.cpp:890
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::GetDepth
lldb::SearchDepth GetDepth() override
Definition: RenderScriptRuntime.h:273
lldb_private::lldb_renderscript::RSReductionDescriptor::m_accum_name
ConstString m_accum_name
Definition: RenderScriptRuntime.h:187
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseRSInfo
bool ParseRSInfo()
Definition: RenderScriptRuntime.cpp:2961
lldb_private::RenderScriptRuntime::AllocationDetails
Definition: RenderScriptRuntime.cpp:594
lldb_private::lldb_renderscript::RSModuleDescriptor::m_reductions
std::vector< RSReductionDescriptor > m_reductions
Definition: RenderScriptRuntime.h:235
lldb_private::RenderScriptRuntime::GetAllocationData
std::shared_ptr< uint8_t > GetAllocationData(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2350
lldb_private::lldb_renderscript::RSReductionDescriptor::m_init_name
ConstString m_init_name
Definition: RenderScriptRuntime.h:185
lldb_private::lldb_renderscript::RSGlobalDescriptor::m_module
const RSModuleDescriptor * m_module
Definition: RenderScriptRuntime.h:162
lldb_private::RenderScriptRuntime::isA
bool isA(const void *ClassID) const override
Definition: RenderScriptRuntime.h:325
lldb_private::lldb_renderscript::RSCoordinate
Definition: RenderScriptRuntime.h:46
lldb_private::ConstString::Compare
static int Compare(ConstString lhs, ConstString rhs, const bool case_sensitive=true)
Compare two string objects.
Definition: ConstString.cpp:258
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeAll
@ eKernelTypeAll
Definition: RenderScriptRuntime.h:93
lldb_private::lldb_renderscript::RSModuleDescriptor::m_module
const lldb::ModuleSP m_module
Definition: RenderScriptRuntime.h:232
lldb_private::RenderScriptRuntime::EvalRSExpression
bool EvalRSExpression(const char *expression, StackFrame *frame_ptr, uint64_t *result)
Definition: RenderScriptRuntime.cpp:1676
lldb_private::RenderScriptRuntime::RenderScriptRuntime
RenderScriptRuntime(Process *process)
Definition: RenderScriptRuntime.cpp:4924
lldb_private::lldb_renderscript::RSModuleDescriptor::Dump
void Dump(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3884
lldb_private::RenderScriptRuntime::CreateInstance
static lldb_private::LanguageRuntime * CreateInstance(Process *process, lldb::LanguageType language)
Definition: RenderScriptRuntime.cpp:780
lldb_private::lldb_renderscript::RSReductionDescriptor::m_halter_name
ConstString m_halter_name
Definition: RenderScriptRuntime.h:193
lldb_private::RenderScriptRuntime::IsRenderScriptModule
static bool IsRenderScriptModule(const lldb::ModuleSP &module_sp)
Definition: RenderScriptRuntime.cpp:995
lldb_private::lldb_renderscript::RSScriptGroupDescriptor::Kernel::m_addr
lldb::addr_t m_addr
Definition: RenderScriptRuntime.h:243
lldb_private::lldb_renderscript::RSReductionDescriptor::m_reduce_name
ConstString m_reduce_name
Definition: RenderScriptRuntime.h:182
lldb_private::lldb_renderscript::RSBreakpointResolver::RSBreakpointResolver
RSBreakpointResolver(const lldb::BreakpointSP &bp, ConstString name)
Definition: RenderScriptRuntime.h:61
lldb_private::lldb_renderscript::RSScriptGroupDescriptor::m_name
ConstString m_name
Definition: RenderScriptRuntime.h:245
lldb_private::Process
Definition: Process.h:338
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver
Definition: RenderScriptRuntime.h:251
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::m_reduce_name
ConstString m_reduce_name
Definition: RenderScriptRuntime.h:137
lldb_private::RenderScriptRuntime::PopulateElementHeaders
size_t PopulateElementHeaders(const std::shared_ptr< uint8_t > header_buffer, size_t offset, const Element &elem)
Definition: RenderScriptRuntime.cpp:2559
lldb_private::RenderScriptRuntime::LoadRuntimeHooks
void LoadRuntimeHooks(lldb::ModuleSP module, ModuleKind kind)
Definition: RenderScriptRuntime.cpp:1529
Module.h
lldb_private::RenderScriptRuntime
Definition: RenderScriptRuntime.h:298
lldb_private::RenderScriptRuntime::eModuleKindImpl
@ eModuleKindImpl
Definition: RenderScriptRuntime.h:304
lldb_private::RenderScriptRuntime::PlaceBreakpointOnKernel
bool PlaceBreakpointOnKernel(lldb::TargetSP target, Stream &messages, const char *name, const lldb_renderscript::RSCoordinate *coords=nullptr)
Definition: RenderScriptRuntime.cpp:3717
lldb_private::lldb_renderscript::RSKernelDescriptor::m_slot
RSSlot m_slot
Definition: RenderScriptRuntime.h:152
lldb_private::RenderScriptRuntime::RecomputeAllAllocations
bool RecomputeAllAllocations(Stream &strm, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:3321
lldb_private::lldb_renderscript::RSReductionDescriptor::Dump
void Dump(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3966
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
lldb_private::RenderScriptRuntime::m_scriptMappings
std::map< lldb::addr_t, lldb_renderscript::RSModuleDescriptorSP > m_scriptMappings
Definition: RenderScriptRuntime.h:484
lldb_private::ConstString::AsCString
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
Definition: ConstString.h:193
lldb_private::CPPLanguageRuntime::isA
bool isA(const void *ClassID) const override
Definition: CPPLanguageRuntime.h:45
lldb_private::lldb_renderscript::RSCoordinate::x
uint32_t x
Definition: RenderScriptRuntime.h:47
lldb_private::RenderScriptRuntime::HookDefn::symbol_name_m64
const char * symbol_name_m64
Definition: RenderScriptRuntime.h:461
lldb_private::lldb_renderscript::RSModuleDescriptor::m_kernels
std::vector< RSKernelDescriptor > m_kernels
Definition: RenderScriptRuntime.h:233
lldb_private::lldb_renderscript::RSScriptGroupDescriptor::m_kernels
std::vector< Kernel > m_kernels
Definition: RenderScriptRuntime.h:246
lldb_private::Stream
Definition: Stream.h:28
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::lldb_renderscript::RSReductionDescriptor::RSReductionDescriptor
RSReductionDescriptor(const RSModuleDescriptor *module, uint32_t sig, uint32_t accum_data_size, llvm::StringRef name, llvm::StringRef init_name, llvm::StringRef accum_name, llvm::StringRef comb_name, llvm::StringRef outc_name, llvm::StringRef halter_name=".")
Definition: RenderScriptRuntime.h:167
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::RSScriptGroupBreakpointResolver
RSScriptGroupBreakpointResolver(const lldb::BreakpointSP &bp, ConstString name, const RSScriptGroupList &groups, bool stop_on_all)
Definition: RenderScriptRuntime.h:253
lldb_private::RenderScriptRuntime::eModuleKindDriver
@ eModuleKindDriver
Definition: RenderScriptRuntime.h:303
lldb_private::lldb_renderscript::RSBreakpointResolver::GetDepth
lldb::SearchDepth GetDepth() override
Definition: RenderScriptRuntime.h:77
lldb_private::LanguageRuntime::isA
virtual bool isA(const void *ClassID) const
Definition: LanguageRuntime.h:173
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseExportReduceCount
bool ParseExportReduceCount(llvm::StringRef *, size_t n_lines)
Definition: RenderScriptRuntime.cpp:2864
lldb_private::RenderScriptRuntime::GetPluginName
llvm::StringRef GetPluginName() override
Definition: RenderScriptRuntime.h:413
lldb_private::SymbolContext
Definition: SymbolContext.h:33
lldb_private::RenderScriptRuntime::LookUpAllocation
AllocationDetails * LookUpAllocation(lldb::addr_t address)
Definition: RenderScriptRuntime.cpp:3828
lldb_private::lldb_renderscript::RSKernelDescriptor::RSKernelDescriptor
RSKernelDescriptor(const RSModuleDescriptor *module, llvm::StringRef name, uint32_t slot)
Definition: RenderScriptRuntime.h:144
lldb_private::lldb_renderscript::RSGlobalDescriptor::Dump
void Dump(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3935
lldb_private::RenderScriptRuntime::LoadAllocation
bool LoadAllocation(Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2397
lldb_private::RenderScriptRuntime::JITSubelements
bool JITSubelements(Element &elem, const lldb::addr_t context, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2011
lldb_private::RenderScriptRuntime::m_conditional_breaks
std::map< lldb::user_id_t, std::unique_ptr< lldb_renderscript::RSCoordinate > > m_conditional_breaks
Definition: RenderScriptRuntime.h:487
lldb_private::lldb_renderscript::RSModuleDescriptor::m_globals
std::vector< RSGlobalDescriptor > m_globals
Definition: RenderScriptRuntime.h:234
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeAccum
@ eKernelTypeAccum
Definition: RenderScriptRuntime.h:95
lldb_private::lldb_renderscript::RSKernelDescriptorSP
std::shared_ptr< RSKernelDescriptor > RSKernelDescriptorSP
Definition: RenderScriptRuntime.h:43
lldb_private::RenderScriptRuntime::ListAllocations
void ListAllocations(Stream &strm, StackFrame *frame_ptr, const uint32_t index)
Definition: RenderScriptRuntime.cpp:3344
lldb_private::lldb_renderscript::RSBreakpointResolver::GetDescription
void GetDescription(Stream *strm) override
Prints a canonical description for the breakpoint to the stream s.
Definition: RenderScriptRuntime.h:65
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::m_rsmodules
std::vector< lldb_renderscript::RSModuleDescriptorSP > * m_rsmodules
Definition: RenderScriptRuntime.h:138
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::SearchCallback
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
Definition: RenderScriptRuntime.cpp:826
lldb_private::lldb_renderscript::RSBreakpointResolver
Definition: RenderScriptRuntime.h:59
lldb_private::RenderScriptRuntime::RuntimeHook
Definition: RenderScriptRuntime.h:467
lldb_private::RenderScriptRuntime::DumpModules
void DumpModules(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3801
lldb_private::lldb_renderscript::RSGlobalDescriptor
Definition: RenderScriptRuntime.h:155
lldb_private::RenderScriptRuntime::CaptureAllocationDestroy
void CaptureAllocationDestroy(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1431
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::Dump
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Definition: RenderScriptRuntime.h:121
lldb_private::lldb_renderscript::RSReductionDescriptor::m_accum_sig
RSSlot m_accum_sig
Definition: RenderScriptRuntime.h:198
lldb_private::RenderScriptRuntime::HookDefn::symbol_name_m32
const char * symbol_name_m32
Definition: RenderScriptRuntime.h:460
lldb_private::RenderScriptRuntime::CaptureScriptInit
void CaptureScriptInit(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1468
lldb_private::lldb_renderscript::RSModuleDescriptor
Definition: RenderScriptRuntime.h:205
lldb_private::lldb_renderscript::RSCoordinate::z
uint32_t z
Definition: RenderScriptRuntime.h:47
lldb_private::lldb_renderscript::RSCoordinate::operator==
bool operator==(const lldb_renderscript::RSCoordinate &rhs)
Definition: RenderScriptRuntime.h:51
lldb_private::RenderScriptRuntime::m_libRSDriver
lldb::ModuleSP m_libRSDriver
Definition: RenderScriptRuntime.h:476
lldb_private::RenderScriptRuntime::s_runtimeHookDefns
static const HookDefn s_runtimeHookDefns[]
Definition: RenderScriptRuntime.h:495
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::GetDescription
void GetDescription(Stream *strm) override
Prints a canonical description for the breakpoint to the stream s.
Definition: RenderScriptRuntime.h:261
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::CopyForBreakpoint
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
Definition: RenderScriptRuntime.h:130
lldb_private::LLVMUserExpression::IRPasses
Definition: LLVMUserExpression.h:48
lldb_private::ModuleList
Definition: ModuleList.h:81
lldb_private::RenderScriptRuntime::DumpAllocation
bool DumpAllocation(Stream &strm, StackFrame *frame_ptr, const uint32_t id)
Definition: RenderScriptRuntime.cpp:3168
lldb_private::SearchFilter
General Outline: Provides the callback and search depth for the SearchFilter search.
Definition: SearchFilter.h:83
lldb_private::BreakpointResolver::NameResolver
@ NameResolver
Definition: BreakpointResolver.h:130
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::GetDepth
lldb::SearchDepth GetDepth() override
Definition: RenderScriptRuntime.h:127
lldb_private::RenderScriptRuntime::CaptureDebugHintScriptGroup2
void CaptureDebugHintScriptGroup2(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1118
lldb_private::Thread
Definition: Thread.h:61
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::m_script_groups
const RSScriptGroupList & m_script_groups
Definition: RenderScriptRuntime.h:293
lldb_private::RenderScriptRuntime::DumpContexts
void DumpContexts(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3094
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::m_group_name
ConstString m_group_name
Definition: RenderScriptRuntime.h:292
lldb_private::RenderScriptRuntime::GetScriptGroups
const lldb_renderscript::RSScriptGroupList & GetScriptGroups() const
Definition: RenderScriptRuntime.h:398
lldb_private::RenderScriptRuntime::ModulesDidLoad
static void ModulesDidLoad(const lldb::ProcessSP &process_sp, const ModuleList &module_list)
lldb_private::lldb_renderscript::RSKernelDescriptor::m_module
const RSModuleDescriptor * m_module
Definition: RenderScriptRuntime.h:150
lldb_private::RenderScriptRuntime::FindStructTypeName
void FindStructTypeName(Element &elem, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2222
lldb_private::RenderScriptRuntime::GetDynamicTypeAndAddress
bool GetDynamicTypeAndAddress(ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type) override
Definition: RenderScriptRuntime.cpp:1012
lldb_private::RenderScriptRuntime::CaptureAllocationInit
void CaptureAllocationInit(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1403
lldb_private::RenderScriptRuntime::LookUpScript
ScriptDetails * LookUpScript(lldb::addr_t address, bool create)
Definition: RenderScriptRuntime.cpp:3812
lldb_private::RenderScriptRuntime::CreateKernelBreakpoint
lldb::BreakpointSP CreateKernelBreakpoint(ConstString name)
Definition: RenderScriptRuntime.cpp:3485
lldb_private::RenderScriptRuntime::GetOverrideExprOptions
bool GetOverrideExprOptions(clang::TargetOptions &prototype)
Definition: RenderScriptExpressionOpts.cpp:157
lldb_private::RenderScriptRuntime::HookDefn
Definition: RenderScriptRuntime.h:458
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseExportForeachCount
bool ParseExportForeachCount(llvm::StringRef *, size_t n_lines)
Definition: RenderScriptRuntime.cpp:2934
lldb_private::RenderScriptRuntime::CreateScriptGroupBreakpoint
lldb::BreakpointSP CreateScriptGroupBreakpoint(ConstString name, bool multi)
Definition: RenderScriptRuntime.cpp:3741
lldb_private::RenderScriptRuntime::HookDefn::version
uint32_t version
Definition: RenderScriptRuntime.h:462
lldb_private::lldb_renderscript::RSSlot
uint32_t RSSlot
Definition: RenderScriptRuntime.h:34
lldb_private::RenderScriptRuntime::eModuleKindIgnored
@ eModuleKindIgnored
Definition: RenderScriptRuntime.h:301
lldb_private::RenderScriptRuntime::CouldHaveDynamicValue
bool CouldHaveDynamicValue(ValueObject &in_value) override
Definition: RenderScriptRuntime.cpp:1025
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::Searcher::CallbackReturn
CallbackReturn
Definition: SearchFilter.h:44
lldb_private::RenderScriptRuntime::JITElementPacked
bool JITElementPacked(Element &elem, const lldb::addr_t context, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:1954
lldb_private::RenderScriptRuntime::RuntimeHookSP
std::shared_ptr< RuntimeHook > RuntimeHookSP
Definition: RenderScriptRuntime.h:473
lldb_private::RenderScriptRuntime::GetCommandObject
static lldb::CommandObjectSP GetCommandObject(CommandInterpreter &interpreter)
Definition: RenderScriptRuntime.cpp:4931
lldb_private::RenderScriptRuntime::BreakOnModuleKernels
void BreakOnModuleKernels(const lldb_renderscript::RSModuleDescriptorSP rsmodule_sp)
Definition: RenderScriptRuntime.cpp:3443
lldb_private::RenderScriptRuntime::CaptureStateFn
void(RenderScriptRuntime::* CaptureStateFn)(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.h:454
lldb_private::RenderScriptRuntime::m_runtimeHooks
std::map< lldb::addr_t, RuntimeHookSP > m_runtimeHooks
Definition: RenderScriptRuntime.h:485
lldb_private::Value::ValueType
ValueType
Type that describes Value::m_value.
Definition: Value.h:41
lldb_private::RenderScriptRuntime::GetKernelCoordinate
static bool GetKernelCoordinate(lldb_renderscript::RSCoordinate &coord, Thread *thread_ptr)
Definition: RenderScriptRuntime.cpp:3576
lldb_private::lldb_renderscript::RSBreakpointResolver::Dump
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Definition: RenderScriptRuntime.h:71
lldb_private::lldb_renderscript::RSModuleDescriptor::ParsePragmaCount
bool ParsePragmaCount(llvm::StringRef *, size_t n_lines)
Definition: RenderScriptRuntime.cpp:2853
lldb_private::CommandInterpreter
Definition: CommandInterpreter.h:214
lldb_private::RenderScriptRuntime::FixupScriptDetails
void FixupScriptDetails(lldb_renderscript::RSModuleDescriptorSP rsmodule_sp)
Definition: RenderScriptRuntime.cpp:1619
lldb_private::RenderScriptRuntime::CalculateElementHeaderSize
size_t CalculateElementHeaderSize(const Element &elem)
Definition: RenderScriptRuntime.cpp:2602
lldb_private::lldb_renderscript::RSScriptGroupDescriptor
Definition: RenderScriptRuntime.h:240
lldb_private::RenderScriptRuntime::ResolveKernelName
bool ResolveKernelName(lldb::addr_t kernel_address, ConstString &name)
Definition: RenderScriptRuntime.cpp:3860
lldb_private::lldb_renderscript::RSGlobalDescriptor::m_name
ConstString m_name
Definition: RenderScriptRuntime.h:163
lldb::DynamicValueType
DynamicValueType
Definition: lldb-enumerations.h:494
lldb_private::LanguageRuntime
Definition: LanguageRuntime.h:60
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeOutC
@ eKernelTypeOutC
Definition: RenderScriptRuntime.h:98
lldb_private::RenderScriptRuntime::DumpKernels
void DumpKernels(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3123
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb_private::RenderScriptRuntime::CreateAllocation
AllocationDetails * CreateAllocation(lldb::addr_t address)
Definition: RenderScriptRuntime.cpp:3838
lldb_private::lldb_renderscript::RSReduceBreakpointResolver
Definition: RenderScriptRuntime.h:90
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeInit
@ eKernelTypeInit
Definition: RenderScriptRuntime.h:96
lldb_private::RenderScriptRuntime::FindAllocByID
AllocationDetails * FindAllocByID(Stream &strm, const uint32_t alloc_id)
Definition: RenderScriptRuntime.cpp:3139
lldb_private::RenderScriptRuntime::FixUpDynamicType
TypeAndOrName FixUpDynamicType(const TypeAndOrName &type_and_or_name, ValueObject &static_value) override
Definition: RenderScriptRuntime.cpp:1020
lldb_private::lldb_renderscript::RSGlobalDescriptorSP
std::shared_ptr< RSGlobalDescriptor > RSGlobalDescriptorSP
Definition: RenderScriptRuntime.h:42
lldb_private::RenderScriptRuntime::RefreshAllocation
bool RefreshAllocation(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2194
lldb_private::RenderScriptRuntime::RuntimeHook::bp_sp
lldb::BreakpointSP bp_sp
Definition: RenderScriptRuntime.h:470
CPPLanguageRuntime.h
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::FindScriptGroup
const RSScriptGroupDescriptorSP FindScriptGroup(ConstString name) const
Definition: RenderScriptRuntime.h:284
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeNone
@ eKernelTypeNone
Definition: RenderScriptRuntime.h:94
lldb_private::RenderScriptRuntime::PlaceBreakpointOnScriptGroup
bool PlaceBreakpointOnScriptGroup(lldb::TargetSP target, Stream &strm, ConstString name, bool stop_on_all)
Definition: RenderScriptRuntime.cpp:3768
lldb_private::RenderScriptRuntime::m_rsmodules
std::vector< lldb_renderscript::RSModuleDescriptorSP > m_rsmodules
Definition: RenderScriptRuntime.h:478
lldb_private::RenderScriptRuntime::GetIRPasses
bool GetIRPasses(LLVMUserExpression::IRPasses &passes) override
Definition: RenderScriptExpressionOpts.cpp:164
lldb-private.h
lldb_private::RenderScriptRuntime::JITAllocationStride
bool JITAllocationStride(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2161
lldb_private::RenderScriptRuntime::eModuleKindLibRS
@ eModuleKindLibRS
Definition: RenderScriptRuntime.h:302
lldb_private::RenderScriptRuntime::s_runtimeHookCount
static const size_t s_runtimeHookCount
Definition: RenderScriptRuntime.h:496
lldb_private::RenderScriptRuntime::Initiate
void Initiate()
Definition: RenderScriptRuntime.cpp:4922
lldb::eSearchDepthModule
@ eSearchDepthModule
Definition: lldb-enumerations.h:286
lldb_private::RenderScriptRuntime::LoadModule
bool LoadModule(const lldb::ModuleSP &module_sp)
Definition: RenderScriptRuntime.cpp:2739
lldb_private::BreakpointResolver
General Outline: The BreakpointResolver is a Searcher.
Definition: BreakpointResolver.h:35
lldb_private::RenderScriptRuntime::m_initiated
bool m_initiated
Definition: RenderScriptRuntime.h:492
lldb_private::RenderScriptRuntime::eModuleKindKernelObj
@ eModuleKindKernelObj
Definition: RenderScriptRuntime.h:305
lldb_private::lldb_renderscript::RSScriptGroupList
std::vector< RSScriptGroupDescriptorSP > RSScriptGroupList
Definition: RenderScriptRuntime.h:249
lldb_private::RenderScriptRuntime::ModuleKind
ModuleKind
Definition: RenderScriptRuntime.h:300
lldb_private::lldb_renderscript::RSKernelDescriptor
Definition: RenderScriptRuntime.h:142
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::GetDescription
void GetDescription(Stream *strm) override
Prints a canonical description for the breakpoint to the stream s.
Definition: RenderScriptRuntime.h:115
lldb_private::RenderScriptRuntime::m_scripts
std::vector< std::unique_ptr< ScriptDetails > > m_scripts
Definition: RenderScriptRuntime.h:480
lldb_private::ValueObject
ValueObject:
Definition: ValueObject.h:105
lldb_private::lldb_renderscript::RSScriptGroupDescriptor::Kernel
Definition: RenderScriptRuntime.h:241
lldb_private::RenderScriptRuntime::Terminate
static void Terminate()
Definition: RenderScriptRuntime.cpp:966
uint32_t
lldb_private::lldb_renderscript::RSReductionDescriptor
Definition: RenderScriptRuntime.h:166
lldb_private::RenderScriptRuntime::classof
static bool classof(const LanguageRuntime *runtime)
Definition: RenderScriptRuntime.h:329
lldb_private::RenderScriptRuntime::m_allocations
std::vector< std::unique_ptr< AllocationDetails > > m_allocations
Definition: RenderScriptRuntime.h:481
lldb_private::lldb_renderscript::RSModuleDescriptor::m_slang_version
std::string m_slang_version
Definition: RenderScriptRuntime.h:206
lldb_private::lldb_renderscript::RSGlobalDescriptor::RSGlobalDescriptor
RSGlobalDescriptor(const RSModuleDescriptor *module, llvm::StringRef name)
Definition: RenderScriptRuntime.h:157
lldb_private::RenderScriptRuntime::SetConditional
void SetConditional(lldb::BreakpointSP bp, lldb_private::Stream &messages, const lldb_renderscript::RSCoordinate &coord)
Definition: RenderScriptRuntime.cpp:3694
lldb_private::Address
Definition: Address.h:59
lldb_private::RenderScriptRuntime::GetFrameVarAsUnsigned
static bool GetFrameVarAsUnsigned(const lldb::StackFrameSP, const char *var_name, uint64_t &val)
Definition: RenderScriptRuntime.cpp:3541
lldb_private::RenderScriptRuntime::Update
void Update()
Definition: RenderScriptRuntime.cpp:2826
lldb_private::lldb_renderscript::RSModuleDescriptor::m_pragmas
std::map< std::string, std::string > m_pragmas
Definition: RenderScriptRuntime.h:236
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::m_stop_on_all
bool m_stop_on_all
Definition: RenderScriptRuntime.h:294
lldb_private::RenderScriptRuntime::HookDefn::name
const char * name
Definition: RenderScriptRuntime.h:459
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::m_kernel_types
int m_kernel_types
Definition: RenderScriptRuntime.h:139
lldb_private::RenderScriptRuntime::m_scriptGroups
lldb_renderscript::RSScriptGroupList m_scriptGroups
Definition: RenderScriptRuntime.h:423
lldb_private::lldb_renderscript::RSCoordinate::RSCoordinate
RSCoordinate()=default
lldb_private::RenderScriptRuntime::Initialize
static void Initialize()
Definition: RenderScriptRuntime.cpp:960
lldb_private::RenderScriptRuntime::KernelBreakpointHit
static bool KernelBreakpointHit(void *baton, StoppointCallbackContext *ctx, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
Definition: RenderScriptRuntime.cpp:3644
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::ReduceKernelTypeFlags
ReduceKernelTypeFlags
Definition: RenderScriptRuntime.h:92
lldb_private::RenderScriptRuntime::HookDefn::kind
ModuleKind kind
Definition: RenderScriptRuntime.h:463
lldb_private::lldb_renderscript::RSReduceBreakpointResolver::eKernelTypeHalter
@ eKernelTypeHalter
Definition: RenderScriptRuntime.h:99
lldb_private::lldb_renderscript::RSModuleDescriptorSP
std::shared_ptr< RSModuleDescriptor > RSModuleDescriptorSP
Definition: RenderScriptRuntime.h:39
lldb_private::RenderScriptRuntime::m_filtersp
lldb::SearchFilterSP m_filtersp
Definition: RenderScriptRuntime.h:490
lldb_private::lldb_renderscript::RSBreakpointResolver::SearchCallback
Searcher::CallbackReturn SearchCallback(SearchFilter &filter, SymbolContext &context, Address *addr) override
Definition: RenderScriptRuntime.cpp:794
lldb_private::RenderScriptRuntime::SetElementSize
void SetElementSize(Element &elem)
Definition: RenderScriptRuntime.cpp:2307
lldb_private::lldb_renderscript::RSKernelDescriptor::m_name
ConstString m_name
Definition: RenderScriptRuntime.h:151
lldb_private::RenderScriptRuntime::ID
static char ID
Definition: RenderScriptRuntime.h:323
lldb_private::lldb_renderscript::RSReductionDescriptor::m_comb_name
ConstString m_comb_name
Definition: RenderScriptRuntime.h:188
clang
Definition: ASTResultSynthesizer.h:15
lldb_private::lldb_renderscript::RSReductionDescriptor::m_accum_data_size
uint32_t m_accum_data_size
Definition: RenderScriptRuntime.h:201
lldb_private::RenderScriptRuntime::m_debuggerPresentFlagged
bool m_debuggerPresentFlagged
Definition: RenderScriptRuntime.h:493
lldb_private::Stream::Printf
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition: Stream.cpp:107
lldb_private::RenderScriptRuntime::PlaceBreakpointOnReduction
bool PlaceBreakpointOnReduction(lldb::TargetSP target, Stream &messages, const char *reduce_name, const lldb_renderscript::RSCoordinate *coords=nullptr, int kernel_types=~(0))
Definition: RenderScriptRuntime.cpp:3779
LanguageRuntime.h
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseVersionInfo
bool ParseVersionInfo(llvm::StringRef *, size_t n_lines)
Definition: RenderScriptRuntime.cpp:2918
lldb::user_id_t
uint64_t user_id_t
Definition: lldb-types.h:84
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseExportVarCount
bool ParseExportVarCount(llvm::StringRef *, size_t n_lines)
Definition: RenderScriptRuntime.cpp:2950
lldb_private::lldb_renderscript::RSReductionDescriptor::m_outc_name
ConstString m_outc_name
Definition: RenderScriptRuntime.h:191
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::lldb_renderscript::RSModuleDescriptor::~RSModuleDescriptor
~RSModuleDescriptor()=default
lldb_private::lldb_renderscript::RSReductionDescriptor::m_module
const RSModuleDescriptor * m_module
Definition: RenderScriptRuntime.h:181
lldb_private::RenderScriptRuntime::InitSearchFilter
void InitSearchFilter(lldb::TargetSP target)
Definition: RenderScriptRuntime.h:427
lldb_private::lldb_renderscript::RSCoordinate::y
uint32_t y
Definition: RenderScriptRuntime.h:47
lldb_private::lldb_renderscript::RSModuleDescriptor::RSModuleDescriptor
RSModuleDescriptor(const lldb::ModuleSP &module)
Definition: RenderScriptRuntime.h:222
lldb_private::lldb_renderscript::RSScriptGroupDescriptor::Kernel::m_name
ConstString m_name
Definition: RenderScriptRuntime.h:242
lldb_private::RenderScriptRuntime::m_breakAllKernels
bool m_breakAllKernels
Definition: RenderScriptRuntime.h:494
lldb_private::lldb_renderscript::RSModuleDescriptor::WarnIfVersionMismatch
void WarnIfVersionMismatch(Stream *s) const
Definition: RenderScriptRuntime.cpp:2834
lldb_private::RenderScriptRuntime::DumpStatus
void DumpStatus(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3067
lldb_private::RenderScriptRuntime::JITAllocationSize
bool JITAllocationSize(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2095
lldb_private::RenderScriptRuntime::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: RenderScriptRuntime.h:321
lldb_private::lldb_renderscript::RSBreakpointResolver::m_kernel_name
ConstString m_kernel_name
Definition: RenderScriptRuntime.h:87
lldb_private::lldb_renderscript::RSScriptGroupBreakpointResolver::Dump
void Dump(Stream *s) const override
Standard "Dump" method. At present it does nothing.
Definition: RenderScriptRuntime.h:267
lldb_private::lldb_renderscript::RSScriptGroupDescriptorSP
std::shared_ptr< RSScriptGroupDescriptor > RSScriptGroupDescriptorSP
Definition: RenderScriptRuntime.h:44
lldb_private::RenderScriptRuntime::HookDefn::grabber
CaptureStateFn grabber
Definition: RenderScriptRuntime.h:464
lldb_private::RenderScriptRuntime::RuntimeHook::defn
const HookDefn * defn
Definition: RenderScriptRuntime.h:469
lldb_private::TypeAndOrName
Sometimes you can find the name of the type corresponding to an object, but we don't have debug infor...
Definition: Type.h:397
lldb_private::RenderScriptRuntime::JITDataPointer
bool JITDataPointer(AllocationDetails *alloc, StackFrame *frame_ptr, uint32_t x=0, uint32_t y=0, uint32_t z=0)
Definition: RenderScriptRuntime.cpp:1823
lldb_private::RenderScriptRuntime::SaveAllocation
bool SaveAllocation(Stream &strm, const uint32_t alloc_id, const char *filename, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:2618
lldb_private::RenderScriptRuntime::CreateReductionBreakpoint
lldb::BreakpointSP CreateReductionBreakpoint(ConstString name, int kernel_types)
Definition: RenderScriptRuntime.cpp:3511
lldb_private::RenderScriptRuntime::GetModuleKind
static ModuleKind GetModuleKind(const lldb::ModuleSP &module_sp)
Definition: RenderScriptRuntime.cpp:971
lldb_private::RenderScriptRuntime::CaptureScriptInvokeForEachMulti
void CaptureScriptInvokeForEachMulti(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1256
lldb_private::StackFrame
Definition: StackFrame.h:40
lldb_private::CPPLanguageRuntime
Definition: CPPLanguageRuntime.h:22
lldb_private::lldb_renderscript::RSReductionDescriptor::m_comb_name_generated
bool m_comb_name_generated
Definition: RenderScriptRuntime.h:202
lldb_private::lldb_renderscript::RSKernelDescriptor::Dump
void Dump(Stream &strm) const
Definition: RenderScriptRuntime.cpp:3961
lldb_private::RenderScriptRuntime::JITTypePointer
bool JITTypePointer(AllocationDetails *alloc, StackFrame *frame_ptr)
Definition: RenderScriptRuntime.cpp:1859
lldb_private::lldb_renderscript::RSBreakpointResolver::CopyForBreakpoint
lldb::BreakpointResolverSP CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override
Definition: RenderScriptRuntime.h:80
lldb_private::lldb_renderscript::RSModuleDescriptor::ParseBuildChecksum
bool ParseBuildChecksum(llvm::StringRef *, size_t n_lines)
LLVMUserExpression.h
lldb_private::RenderScriptRuntime::m_libRSCpuRef
lldb::ModuleSP m_libRSCpuRef
Definition: RenderScriptRuntime.h:477
lldb_private::RenderScriptRuntime::~RenderScriptRuntime
~RenderScriptRuntime() override
lldb_private::RenderScriptRuntime::SetBreakAllKernels
void SetBreakAllKernels(bool do_break, lldb::TargetSP target)
Definition: RenderScriptRuntime.cpp:3457
lldb_private::RenderScriptRuntime::ScriptDetails
Definition: RenderScriptRuntime.cpp:490
lldb_private::RenderScriptRuntime::CreateExceptionResolver
lldb::BreakpointResolverSP CreateExceptionResolver(const lldb::BreakpointSP &bp, bool catch_bp, bool throw_bp) override
Definition: RenderScriptRuntime.cpp:1030
lldb_private::RenderScriptRuntime::RuntimeHook::address
lldb::addr_t address
Definition: RenderScriptRuntime.h:468
lldb_private::RenderScriptRuntime::CaptureSetGlobalVar
void CaptureSetGlobalVar(RuntimeHook *hook_info, ExecutionContext &context)
Definition: RenderScriptRuntime.cpp:1356
lldb_private::RenderScriptRuntime::m_libRS
lldb::ModuleSP m_libRS
Definition: RenderScriptRuntime.h:475
lldb_private::lldb_renderscript::RSModuleDescriptor::m_bcc_version
std::string m_bcc_version
Definition: RenderScriptRuntime.h:207