Searched refs:heap (Results 1 – 12 of 12) sorted by relevance
| /tools/include/nolibc/ |
| A D | stdlib.h | 94 struct nolibc_heap *heap; in free() local 100 munmap(heap, heap->len); in free() 129 struct nolibc_heap *heap; in malloc() local 132 len = sizeof(*heap) + len; in malloc() 136 if (__builtin_expect(heap == MAP_FAILED, 0)) in malloc() 139 heap->len = len; in malloc() 140 return heap->user_p; in malloc() 163 struct nolibc_heap *heap; in realloc() local 171 user_p_len = heap->len - sizeof(*heap); in realloc() 184 memcpy(ret, heap->user_p, user_p_len); in realloc() [all …]
|
| /tools/testing/selftests/dmabuf-heaps/ |
| A D | .gitignore | 1 dmabuf-heap
|
| A D | Makefile | 4 TEST_GEN_PROGS = dmabuf-heap
|
| /tools/perf/util/ |
| A D | s390-cpumsf.c | 171 struct auxtrace_heap heap; member 819 return auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_setup_queue() 855 if (!sf->heap.heap_cnt) in s390_cpumsf_process_queues() 858 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues() 861 queue_nr = sf->heap.heap_array[0].queue_nr; in s390_cpumsf_process_queues() 865 auxtrace_heap__pop(&sf->heap); in s390_cpumsf_process_queues() 866 if (sf->heap.heap_cnt) { in s390_cpumsf_process_queues() 867 ts = sf->heap.heap_array[0].ordinal + 1; in s390_cpumsf_process_queues() 876 auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_process_queues() 880 ret = auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_process_queues() [all …]
|
| A D | intel-bts.c | 47 struct auxtrace_heap heap; member 196 ret = auxtrace_heap__add(&bts->heap, queue_nr, in intel_bts_setup_queue() 563 if (!bts->heap.heap_cnt) in intel_bts_process_queues() 566 if (bts->heap.heap_array[0].ordinal > timestamp) in intel_bts_process_queues() 569 queue_nr = bts->heap.heap_array[0].queue_nr; in intel_bts_process_queues() 573 auxtrace_heap__pop(&bts->heap); in intel_bts_process_queues() 577 auxtrace_heap__add(&bts->heap, queue_nr, ts); in intel_bts_process_queues() 582 ret = auxtrace_heap__add(&bts->heap, queue_nr, ts); in intel_bts_process_queues() 727 auxtrace_heap__free(&bts->heap); in intel_bts_free()
|
| A D | auxtrace.c | 497 if (queue_nr >= heap->heap_sz) { in auxtrace_heap__add() 502 heap_array = realloc(heap->heap_array, in auxtrace_heap__add() 506 heap->heap_array = heap_array; in auxtrace_heap__add() 507 heap->heap_sz = heap_sz; in auxtrace_heap__add() 510 auxtrace_heapify(heap->heap_array, heap->heap_cnt++, queue_nr, ordinal); in auxtrace_heap__add() 517 zfree(&heap->heap_array); in auxtrace_heap__free() 518 heap->heap_cnt = 0; in auxtrace_heap__free() 519 heap->heap_sz = 0; in auxtrace_heap__free() 522 void auxtrace_heap__pop(struct auxtrace_heap *heap) in auxtrace_heap__pop() argument 530 heap->heap_cnt -= 1; in auxtrace_heap__pop() [all …]
|
| A D | arm-spe.c | 45 struct auxtrace_heap heap; member 1137 ret = auxtrace_heap__add(&spe->heap, queue_nr, speq->timestamp); in arm_spe__setup_queue() 1198 if (!spe->heap.heap_cnt) in arm_spe_process_queues() 1201 if (spe->heap.heap_array[0].ordinal >= timestamp) in arm_spe_process_queues() 1204 queue_nr = spe->heap.heap_array[0].queue_nr; in arm_spe_process_queues() 1208 auxtrace_heap__pop(&spe->heap); in arm_spe_process_queues() 1210 if (spe->heap.heap_cnt) { in arm_spe_process_queues() 1211 ts = spe->heap.heap_array[0].ordinal + 1; in arm_spe_process_queues() 1227 auxtrace_heap__add(&spe->heap, queue_nr, ts); in arm_spe_process_queues() 1232 ret = auxtrace_heap__add(&spe->heap, queue_nr, ts); in arm_spe_process_queues() [all …]
|
| A D | auxtrace.h | 554 int auxtrace_heap__add(struct auxtrace_heap *heap, unsigned int queue_nr, 556 void auxtrace_heap__pop(struct auxtrace_heap *heap); 557 void auxtrace_heap__free(struct auxtrace_heap *heap);
|
| A D | intel-pt.c | 64 struct auxtrace_heap heap; member 3223 if (!pt->heap.heap_cnt) in intel_pt_process_queues() 3226 if (pt->heap.heap_array[0].ordinal >= timestamp) in intel_pt_process_queues() 3229 queue_nr = pt->heap.heap_array[0].queue_nr; in intel_pt_process_queues() 3234 queue_nr, pt->heap.heap_array[0].ordinal, in intel_pt_process_queues() 3237 auxtrace_heap__pop(&pt->heap); in intel_pt_process_queues() 3239 if (pt->heap.heap_cnt) { in intel_pt_process_queues() 3240 ts = pt->heap.heap_array[0].ordinal + 1; in intel_pt_process_queues() 3252 auxtrace_heap__add(&pt->heap, queue_nr, ts); in intel_pt_process_queues() 3257 ret = auxtrace_heap__add(&pt->heap, queue_nr, ts); in intel_pt_process_queues() [all …]
|
| A D | cs-etm.c | 46 struct auxtrace_heap heap; member 1280 ret = auxtrace_heap__add(&etm->heap, cs_queue_nr, cs_timestamp); in cs_etm__queue_first_cs_timestamp() 2643 if (!etm->heap.heap_cnt) in cs_etm__process_timestamped_queues() 2647 cs_queue_nr = etm->heap.heap_array[0].queue_nr; in cs_etm__process_timestamped_queues() 2657 auxtrace_heap__pop(&etm->heap); in cs_etm__process_timestamped_queues() 2724 ret = auxtrace_heap__add(&etm->heap, cs_queue_nr, cs_timestamp); in cs_etm__process_timestamped_queues()
|
| /tools/testing/selftests/sgx/ |
| A D | main.c | 390 struct encl_segment *heap; variable 453 modt_ioc.offset = heap->offset; 454 modt_ioc.length = heap->size; 458 heap->size); 465 EXPECT_EQ(modt_ioc.count, heap->size); 474 heap->size); 475 for (i = 0; i < heap->size; i += 4096) { 491 remove_ioc.offset = heap->offset; 492 remove_ioc.length = heap->size; 495 heap->size); [all …]
|
| /tools/memory-model/Documentation/ |
| A D | access-marking.txt | 187 fields in the task_struct structure, and task-private heap data.
|
Completed in 47 milliseconds