Lines Matching refs:strm

1506     StreamString strm;  in CaptureScriptInit()  local
1507 strm.Printf("librs.%s.so", res_name.c_str()); in CaptureScriptInit()
1514 script->shared_lib = std::string(strm.GetString()); in CaptureScriptInit()
1521 __FUNCTION__, strm.GetData(), uint64_t(args[eRsContext]), in CaptureScriptInit()
2397 bool RenderScriptRuntime::LoadAllocation(Stream &strm, const uint32_t alloc_id, in LoadAllocation() argument
2403 AllocationDetails *alloc = FindAllocByID(strm, alloc_id); in LoadAllocation()
2430 strm.Printf("Error: File %s does not exist", path); in LoadAllocation()
2431 strm.EOL(); in LoadAllocation()
2436 strm.Printf("Error: File %s does not have readable permissions", path); in LoadAllocation()
2437 strm.EOL(); in LoadAllocation()
2449 strm.Printf("Error: File %s does not contain enough data for header", path); in LoadAllocation()
2450 strm.EOL(); in LoadAllocation()
2458 strm.Printf("Error: File doesn't contain identifier for an RS allocation " in LoadAllocation()
2460 strm.EOL(); in LoadAllocation()
2477 strm.Printf("Warning: Mismatched Element sizes - file %" PRIu32 in LoadAllocation()
2480 strm.EOL(); in LoadAllocation()
2488 strm.Printf("Warning: File has unknown allocation type"); in LoadAllocation()
2489 strm.EOL(); in LoadAllocation()
2512 strm.Printf( in LoadAllocation()
2515 strm.EOL(); in LoadAllocation()
2528 strm.Printf("Warning: Mismatched allocation sizes - file 0x%" PRIx64 in LoadAllocation()
2531 strm.EOL(); in LoadAllocation()
2541 strm.Printf("Error: Couldn't write data to allocation %s", err.AsCString()); in LoadAllocation()
2542 strm.EOL(); in LoadAllocation()
2546 strm.Printf("Contents of file '%s' read into allocation %" PRIu32, path, in LoadAllocation()
2548 strm.EOL(); in LoadAllocation()
2618 bool RenderScriptRuntime::SaveAllocation(Stream &strm, const uint32_t alloc_id, in SaveAllocation() argument
2624 AllocationDetails *alloc = FindAllocByID(strm, alloc_id); in SaveAllocation()
2657 strm.Printf("Error: Failed to open '%s' for writing: %s", path, in SaveAllocation()
2659 strm.EOL(); in SaveAllocation()
2666 strm.Printf("Error: Couldn't read allocation data into buffer"); in SaveAllocation()
2667 strm.EOL(); in SaveAllocation()
2692 strm.Printf("Error: '%s' when writing to file '%s'", err.AsCString(), path); in SaveAllocation()
2693 strm.EOL(); in SaveAllocation()
2701 strm.Printf("Internal Error: Couldn't allocate %" PRIu64 in SaveAllocation()
2704 strm.EOL(); in SaveAllocation()
2717 strm.Printf("Error: '%s' when writing to file '%s'", err.AsCString(), path); in SaveAllocation()
2718 strm.EOL(); in SaveAllocation()
2729 strm.Printf("Error: '%s' when writing to file '%s'", err.AsCString(), path); in SaveAllocation()
2730 strm.EOL(); in SaveAllocation()
2734 strm.Printf("Allocation written to file '%s'", path); in SaveAllocation()
2735 strm.EOL(); in SaveAllocation()
3067 void RenderScriptRuntime::DumpStatus(Stream &strm) const { in DumpStatus()
3069 strm.Printf("Runtime Library discovered."); in DumpStatus()
3070 strm.EOL(); in DumpStatus()
3073 strm.Printf("Runtime Driver discovered."); in DumpStatus()
3074 strm.EOL(); in DumpStatus()
3077 strm.Printf("CPU Reference Implementation discovered."); in DumpStatus()
3078 strm.EOL(); in DumpStatus()
3082 strm.Printf("Runtime functions hooked:"); in DumpStatus()
3083 strm.EOL(); in DumpStatus()
3085 strm.Indent(b.second->defn->name); in DumpStatus()
3086 strm.EOL(); in DumpStatus()
3089 strm.Printf("Runtime is not hooked."); in DumpStatus()
3090 strm.EOL(); in DumpStatus()
3094 void RenderScriptRuntime::DumpContexts(Stream &strm) const { in DumpContexts()
3095 strm.Printf("Inferred RenderScript Contexts:"); in DumpContexts()
3096 strm.EOL(); in DumpContexts()
3097 strm.IndentMore(); in DumpContexts()
3116 strm.Printf("Context 0x%" PRIx64 ": %" PRIu64 " script instances", in DumpContexts()
3118 strm.EOL(); in DumpContexts()
3120 strm.IndentLess(); in DumpContexts()
3123 void RenderScriptRuntime::DumpKernels(Stream &strm) const { in DumpKernels()
3124 strm.Printf("RenderScript Kernels:"); in DumpKernels()
3125 strm.EOL(); in DumpKernels()
3126 strm.IndentMore(); in DumpKernels()
3128 strm.Printf("Resource '%s':", module->m_resname.c_str()); in DumpKernels()
3129 strm.EOL(); in DumpKernels()
3131 strm.Indent(kernel.m_name.GetStringRef()); in DumpKernels()
3132 strm.EOL(); in DumpKernels()
3135 strm.IndentLess(); in DumpKernels()
3139 RenderScriptRuntime::FindAllocByID(Stream &strm, const uint32_t alloc_id) { in FindAllocByID() argument
3158 strm.Printf("Error: Couldn't find allocation with id matching %" PRIu32, in FindAllocByID()
3160 strm.EOL(); in FindAllocByID()
3168 bool RenderScriptRuntime::DumpAllocation(Stream &strm, StackFrame *frame_ptr, in DumpAllocation() argument
3173 AllocationDetails *alloc = FindAllocByID(strm, id); in DumpAllocation()
3187 strm.Printf("Error: Couldn't JIT allocation details"); in DumpAllocation()
3188 strm.EOL(); in DumpAllocation()
3218 strm.Printf("Error: Couldn't read allocation data"); in DumpAllocation()
3219 strm.EOL(); in DumpAllocation()
3229 strm.Printf("Error: Couldn't calculate allocation row stride"); in DumpAllocation()
3230 strm.EOL(); in DumpAllocation()
3263 strm.Printf("Data (X, Y, Z):"); in DumpAllocation()
3273 strm.Printf("\n(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ") = ", x, y, z); in DumpAllocation()
3303 expr_result->Dump(strm, expr_options); in DumpAllocation()
3305 DumpDataExtractor(alloc_data, &strm, offset, format, in DumpAllocation()
3313 strm.EOL(); in DumpAllocation()
3321 bool RenderScriptRuntime::RecomputeAllAllocations(Stream &strm, in RecomputeAllAllocations() argument
3327 strm.Printf("Error: Couldn't evaluate details for allocation %" PRIu32 in RecomputeAllAllocations()
3335 strm.Printf("All allocations successfully recomputed"); in RecomputeAllAllocations()
3336 strm.EOL(); in RecomputeAllAllocations()
3344 void RenderScriptRuntime::ListAllocations(Stream &strm, StackFrame *frame_ptr, in ListAllocations() argument
3346 strm.Printf("RenderScript Allocations:"); in ListAllocations()
3347 strm.EOL(); in ListAllocations()
3348 strm.IndentMore(); in ListAllocations()
3357 strm.Printf("Error: Couldn't evaluate details for allocation %" PRIu32, in ListAllocations()
3359 strm.EOL(); in ListAllocations()
3363 strm.Printf("%" PRIu32 ":", alloc->id); in ListAllocations()
3364 strm.EOL(); in ListAllocations()
3365 strm.IndentMore(); in ListAllocations()
3367 strm.Indent("Context: "); in ListAllocations()
3369 strm.Printf("unknown\n"); in ListAllocations()
3371 strm.Printf("0x%" PRIx64 "\n", *alloc->context.get()); in ListAllocations()
3373 strm.Indent("Address: "); in ListAllocations()
3375 strm.Printf("unknown\n"); in ListAllocations()
3377 strm.Printf("0x%" PRIx64 "\n", *alloc->address.get()); in ListAllocations()
3379 strm.Indent("Data pointer: "); in ListAllocations()
3381 strm.Printf("unknown\n"); in ListAllocations()
3383 strm.Printf("0x%" PRIx64 "\n", *alloc->data_ptr.get()); in ListAllocations()
3385 strm.Indent("Dimensions: "); in ListAllocations()
3387 strm.Printf("unknown\n"); in ListAllocations()
3389 strm.Printf("(%" PRId32 ", %" PRId32 ", %" PRId32 ")\n", in ListAllocations()
3393 strm.Indent("Data Type: "); in ListAllocations()
3396 strm.Printf("unknown\n"); in ListAllocations()
3402 strm.Printf("%s\n", alloc->element.type_name.AsCString()); in ListAllocations()
3414 strm.Printf("invalid type\n"); in ListAllocations()
3416 strm.Printf( in ListAllocations()
3423 strm.Indent("Data Kind: "); in ListAllocations()
3425 strm.Printf("unknown\n"); in ListAllocations()
3429 strm.Printf("invalid kind\n"); in ListAllocations()
3431 strm.Printf( in ListAllocations()
3436 strm.EOL(); in ListAllocations()
3437 strm.IndentLess(); in ListAllocations()
3439 strm.IndentLess(); in ListAllocations()
3769 Stream &strm, in PlaceBreakpointOnScriptGroup() argument
3775 bp->GetDescription(&strm, lldb::eDescriptionLevelInitial, false); in PlaceBreakpointOnScriptGroup()
3801 void RenderScriptRuntime::DumpModules(Stream &strm) const { in DumpModules()
3802 strm.Printf("RenderScript Modules:"); in DumpModules()
3803 strm.EOL(); in DumpModules()
3804 strm.IndentMore(); in DumpModules()
3806 module->Dump(strm); in DumpModules()
3808 strm.IndentLess(); in DumpModules()
3884 void RSModuleDescriptor::Dump(Stream &strm) const { in Dump()
3885 int indent = strm.GetIndentLevel(); in Dump()
3887 strm.Indent(); in Dump()
3888 m_module->GetFileSpec().Dump(strm.AsRawOstream()); in Dump()
3889 strm.Indent(m_module->GetNumCompileUnits() ? "Debug info loaded." in Dump()
3891 strm.EOL(); in Dump()
3892 strm.IndentMore(); in Dump()
3894 strm.Indent(); in Dump()
3895 strm.Printf("Globals: %" PRIu64, static_cast<uint64_t>(m_globals.size())); in Dump()
3896 strm.EOL(); in Dump()
3897 strm.IndentMore(); in Dump()
3899 global.Dump(strm); in Dump()
3901 strm.IndentLess(); in Dump()
3903 strm.Indent(); in Dump()
3904 strm.Printf("Kernels: %" PRIu64, static_cast<uint64_t>(m_kernels.size())); in Dump()
3905 strm.EOL(); in Dump()
3906 strm.IndentMore(); in Dump()
3908 kernel.Dump(strm); in Dump()
3910 strm.IndentLess(); in Dump()
3912 strm.Indent(); in Dump()
3913 strm.Printf("Pragmas: %" PRIu64, static_cast<uint64_t>(m_pragmas.size())); in Dump()
3914 strm.EOL(); in Dump()
3915 strm.IndentMore(); in Dump()
3917 strm.Indent(); in Dump()
3918 strm.Printf("%s: %s", key_val.first.c_str(), key_val.second.c_str()); in Dump()
3919 strm.EOL(); in Dump()
3921 strm.IndentLess(); in Dump()
3923 strm.Indent(); in Dump()
3924 strm.Printf("Reductions: %" PRIu64, in Dump()
3926 strm.EOL(); in Dump()
3927 strm.IndentMore(); in Dump()
3929 reduction.Dump(strm); in Dump()
3932 strm.SetIndentLevel(indent); in Dump()
3935 void RSGlobalDescriptor::Dump(Stream &strm) const { in Dump()
3936 strm.Indent(m_name.GetStringRef()); in Dump()
3944 strm.Printf(" - "); in Dump()
3945 type->DumpTypeName(&strm); in Dump()
3947 strm.Printf(" - Unknown Type"); in Dump()
3950 strm.Printf(" - variable identified, but not found in binary"); in Dump()
3954 strm.Printf(" (symbol exists) "); in Dump()
3958 strm.EOL(); in Dump()
3961 void RSKernelDescriptor::Dump(Stream &strm) const { in Dump()
3962 strm.Indent(m_name.GetStringRef()); in Dump()
3963 strm.EOL(); in Dump()