/external/perfetto/src/profiling/memory/ |
D | wrap_allocators.cc | 34 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size) { in wrap_malloc() argument 36 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_malloc() 41 void* wrap_calloc(uint32_t heap_id, in wrap_calloc() argument 46 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_calloc() 51 void* wrap_memalign(uint32_t heap_id, in wrap_memalign() argument 56 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(addr), in wrap_memalign() 61 int wrap_posix_memalign(uint32_t heap_id, in wrap_posix_memalign() argument 70 AHeapProfile_reportAllocation(heap_id, reinterpret_cast<uint64_t>(*memptr), in wrap_posix_memalign() 78 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer) { in wrap_free() argument 90 AHeapProfile_reportFree(heap_id, reinterpret_cast<uint64_t>(pointer)); in wrap_free() [all …]
|
D | wrap_allocators.h | 26 void* wrap_malloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 27 void* wrap_calloc(uint32_t heap_id, 31 void* wrap_memalign(uint32_t heap_id, 35 int wrap_posix_memalign(uint32_t heap_id, 40 void wrap_free(uint32_t heap_id, void (*fn)(void*), void* pointer); 41 void* wrap_realloc(uint32_t heap_id, 45 void* wrap_pvalloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 46 void* wrap_valloc(uint32_t heap_id, void* (*fn)(size_t), size_t size); 48 void* wrap_reallocarray(uint32_t heap_id,
|
D | client_api_benchmark.cc | 28 static uint32_t heap_id = in GetHeapId() local 30 return heap_id; in GetHeapId() 72 const uint32_t heap_id = GetHeapId(); in BM_ClientApiOneTenthAllocation() local 84 AHeapProfile_reportAllocation(heap_id, 0x123, 3200); in BM_ClientApiOneTenthAllocation() 93 const uint32_t heap_id = GetHeapId(); in BM_ClientApiOneHundrethAllocation() local 105 AHeapProfile_reportAllocation(heap_id, 0x123, 320); in BM_ClientApiOneHundrethAllocation() 114 const uint32_t heap_id = GetHeapId(); in BM_ClientApiAlmostNoAllocation() local 126 AHeapProfile_reportAllocation(heap_id, 0x123, 1); in BM_ClientApiAlmostNoAllocation() 135 const uint32_t heap_id = GetHeapId(); in BM_ClientApiSample() local 147 AHeapProfile_reportSample(heap_id, 0x123, 20); in BM_ClientApiSample() [all …]
|
D | client_api_unittest.cc | 75 uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("NoClient")); in TEST() local 76 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 80 uint32_t heap_id = in TEST() local 95 EXPECT_TRUE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 100 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 104 uint32_t heap_id = in TEST() local 117 EXPECT_TRUE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST() 122 EXPECT_FALSE(AHeapProfile_reportAllocation(heap_id, 1, 1)); in TEST()
|
D | client_api.cc | 181 uint64_t MaybeToggleHeap(uint32_t heap_id, in MaybeToggleHeap() argument 183 AHeapInfo& heap = GetHeap(heap_id); in MaybeToggleHeap() 203 client->RecordHeapInfo(heap_id, &heap.heap_name[0], interval); in MaybeToggleHeap() 334 auto heap_id = static_cast<uint32_t>(info - &g_heaps[0]); in AHeapProfile_registerHeap() local 348 uint64_t interval = MaybeToggleHeap(heap_id, client.get()); in AHeapProfile_registerHeap() 358 return heap_id; in AHeapProfile_registerHeap() 362 AHeapProfile_reportAllocation(uint32_t heap_id, uint64_t id, uint64_t size) { in AHeapProfile_reportAllocation() argument 363 AHeapInfo& heap = GetHeap(heap_id); in AHeapProfile_reportAllocation() 399 client_ptr->RecordHeapInfo(heap_id, "", new_interval); in AHeapProfile_reportAllocation() 406 if (!client->RecordMalloc(heap_id, sampled_alloc_sz, size, id)) { in AHeapProfile_reportAllocation() [all …]
|
D | heapprofd_standalone_client_example.cc | 23 void OtherFn(uint32_t heap_id, uint64_t i) { in OtherFn() argument 24 AHeapProfile_reportAllocation(heap_id, i, i); in OtherFn() 30 uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("test")); in main() local 32 OtherFn(heap_id, i); in main()
|
D | client.cc | 360 bool Client::RecordMalloc(uint32_t heap_id, in RecordMalloc() argument 384 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordMalloc() 385 metadata.heap_id = heap_id; in RecordMalloc() 430 bool Client::RecordFree(uint32_t heap_id, const uint64_t alloc_address) { in RecordFree() argument 437 1 + sequence_number_[heap_id].fetch_add(1, std::memory_order_acq_rel); in RecordFree() 439 current_entry.heap_id = heap_id; in RecordFree() 457 bool Client::RecordHeapInfo(uint32_t heap_id, in RecordHeapInfo() argument 465 hnr.heap_id = heap_id; in RecordHeapInfo()
|
D | client.h | 80 bool RecordMalloc(uint32_t heap_id, 86 bool RecordFree(uint32_t heap_id, 88 bool RecordHeapInfo(uint32_t heap_id,
|
D | heapprofd_end_to_end_test.cc | 167 static uint32_t heap_id = AHeapProfile_registerHeap(AHeapInfo_create("test")); in CustomAllocateAndFree() local 168 AHeapProfile_reportAllocation(heap_id, 0x1234abc, bytes); in CustomAllocateAndFree() 169 AHeapProfile_reportFree(heap_id, 0x1234abc); in CustomAllocateAndFree() 173 static uint32_t heap_id = in SecondaryAllocAndFree() local 175 AHeapProfile_reportAllocation(heap_id, 0x1234abc, bytes); in SecondaryAllocAndFree() 176 AHeapProfile_reportFree(heap_id, 0x1234abc); in SecondaryAllocAndFree() 287 static uint32_t heap_id = in RunAccurateMalloc() local 303 if (!AHeapProfile_reportAllocation(heap_id, 0x1, 10u)) in RunAccurateMalloc() 305 AHeapProfile_reportFree(heap_id, 0x1); in RunAccurateMalloc() 306 if (!AHeapProfile_reportAllocation(heap_id, 0x2, 15u)) in RunAccurateMalloc() [all …]
|
D | wire_protocol.h | 122 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 130 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id; 135 PERFETTO_CROSS_ABI_ALIGNED(uint32_t) heap_id;
|
D | heapprofd_producer.h | 204 HeapInfo& GetHeapInfo(uint32_t heap_id) { in GetHeapInfo() 205 auto it = heap_infos.find(heap_id); in GetHeapInfo() 208 std::piecewise_construct, std::forward_as_tuple(heap_id), in GetHeapInfo() 214 HeapTracker& GetHeapTracker(uint32_t heap_id) { in GetHeapTracker() 215 return GetHeapInfo(heap_id).heap_tracker; in GetHeapTracker()
|
D | wire_protocol_unittest.cc | 34 one.clock_monotonic_coarse_timestamp, one.heap_id, in operator ==() 39 other.heap_id, other.arch) && in operator ==() 46 return (std::tie(one.sequence_number, one.addr, one.heap_id) == in operator ==() 47 std::tie(other.sequence_number, other.addr, other.heap_id)); in operator ==()
|
D | heapprofd_producer.cc | 1061 streaming_alloc->add_heap_id(alloc_metadata.heap_id); in HandleAllocRecord() 1081 process_state.GetHeapTracker(alloc_rec->alloc_metadata.heap_id); in HandleAllocRecord() 1121 streaming_free->add_heap_id(free_rec.entry.heap_id); in HandleFreeRecord() 1129 HeapTracker& heap_tracker = process_state.GetHeapTracker(entry.heap_id); in HandleFreeRecord() 1151 if (entry.heap_id == 0) { in HandleHeapNameRecord() 1155 ProcessState::HeapInfo& hi = process_state.GetHeapInfo(entry.heap_id); in HandleHeapNameRecord() 1163 ProcessState::HeapInfo& hi = process_state.GetHeapInfo(entry.heap_id); in HandleHeapNameRecord()
|
/external/igt-gpu-tools/tests/ |
D | ion_fb.c | 37 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in make_fb_with_fds() local 38 igt_assert(heap_id != -1); in make_fb_with_fds() 43 heap_id, in make_fb_with_fds() 77 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in clone_with_fds() local 78 igt_assert(heap_id != -1); in clone_with_fds() 83 heap_id, in clone_with_fds() 123 const int heap_id = ion_get_heap_id(ion_fd, ION_HEAP_TYPE_SYSTEM); in mmap_with_buffer() local 124 igt_assert(heap_id != -1); in mmap_with_buffer() 132 heap_id, in mmap_with_buffer()
|
/external/igt-gpu-tools/lib/ |
D | ion.c | 31 ret = hi->heap_id; in ion_get_heap_id() 43 int ion_alloc_one_fd(int ion_fd, size_t size, int heap_id, int *ion_buffer_fd) in ion_alloc_one_fd() argument 45 if (heap_id < 0 || heap_id >= kBitsInAnInt) in ion_alloc_one_fd() 51 const int heap_mask = 1 << heap_id; in ion_alloc_one_fd()
|
D | ion.h | 24 int ion_alloc_one_fd(int ion_fd, size_t size, int heap_id, int *ion_buffer_fd);
|
/external/linux-kselftest/tools/testing/selftests/android/ion/ |
D | ionutils.c | 49 unsigned int heap_id; in ion_export_buffer_fd() local 80 heap_id = MAX_HEAP_COUNT + 1; in ion_export_buffer_fd() 83 heap_id = heap_data[i].heap_id; in ion_export_buffer_fd() 88 if (heap_id > MAX_HEAP_COUNT) { in ion_export_buffer_fd() 95 alloc_data.heap_id_mask = 1 << heap_id; in ion_export_buffer_fd()
|
D | ion.h | 95 __u32 heap_id; member
|
/external/perfetto/src/profiling/memory/include/perfetto/ |
D | heap_profile.h | 151 bool AHeapProfile_reportAllocation(uint32_t heap_id, 168 bool AHeapProfile_reportSample(uint32_t heap_id, 181 void AHeapProfile_reportFree(uint32_t heap_id, uint64_t alloc_id);
|
/external/perfetto/protos/perfetto/trace/profiling/ |
D | profile_packet.proto | 168 repeated uint32 heap_id = 5; field 175 repeated uint32 heap_id = 2; field
|
/external/perfetto/protos/perfetto/trace/ |
D | perfetto_trace.proto | 7943 repeated uint32 heap_id = 5; field 7950 repeated uint32 heap_id = 2; field
|