/tools/include/nolibc/ |
D | stdlib.h | 72 struct nolibc_heap *heap; in free() local 77 heap = container_of(ptr, struct nolibc_heap, user_p); in free() 78 munmap(heap, heap->len); in free() 133 struct nolibc_heap *heap; in malloc() local 136 len = sizeof(*heap) + len; in malloc() 138 heap = mmap(NULL, len, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, in malloc() 140 if (__builtin_expect(heap == MAP_FAILED, 0)) in malloc() 143 heap->len = len; in malloc() 144 return heap->user_p; in malloc() 167 struct nolibc_heap *heap; in realloc() local [all …]
|
/tools/testing/selftests/dmabuf-heaps/ |
D | Makefile | 4 TEST_GEN_PROGS = dmabuf-heap
|
/tools/perf/util/ |
D | s390-cpumsf.c | 171 struct auxtrace_heap heap; member 817 return auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_setup_queue() 853 if (!sf->heap.heap_cnt) in s390_cpumsf_process_queues() 856 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues() 859 queue_nr = sf->heap.heap_array[0].queue_nr; in s390_cpumsf_process_queues() 863 auxtrace_heap__pop(&sf->heap); in s390_cpumsf_process_queues() 864 if (sf->heap.heap_cnt) { in s390_cpumsf_process_queues() 865 ts = sf->heap.heap_array[0].ordinal + 1; in s390_cpumsf_process_queues() 874 auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_process_queues() 878 ret = auxtrace_heap__add(&sf->heap, queue_nr, ts); in s390_cpumsf_process_queues() [all …]
|
D | intel-bts.c | 47 struct auxtrace_heap heap; member 196 ret = auxtrace_heap__add(&bts->heap, queue_nr, in intel_bts_setup_queue() 561 if (!bts->heap.heap_cnt) in intel_bts_process_queues() 564 if (bts->heap.heap_array[0].ordinal > timestamp) in intel_bts_process_queues() 567 queue_nr = bts->heap.heap_array[0].queue_nr; in intel_bts_process_queues() 571 auxtrace_heap__pop(&bts->heap); in intel_bts_process_queues() 575 auxtrace_heap__add(&bts->heap, queue_nr, ts); in intel_bts_process_queues() 580 ret = auxtrace_heap__add(&bts->heap, queue_nr, ts); in intel_bts_process_queues() 725 auxtrace_heap__free(&bts->heap); in intel_bts_free()
|
D | arm-spe.c | 43 struct auxtrace_heap heap; member 754 ret = auxtrace_heap__add(&spe->heap, queue_nr, speq->timestamp); in arm_spe__setup_queue() 815 if (!spe->heap.heap_cnt) in arm_spe_process_queues() 818 if (spe->heap.heap_array[0].ordinal >= timestamp) in arm_spe_process_queues() 821 queue_nr = spe->heap.heap_array[0].queue_nr; in arm_spe_process_queues() 825 auxtrace_heap__pop(&spe->heap); in arm_spe_process_queues() 827 if (spe->heap.heap_cnt) { in arm_spe_process_queues() 828 ts = spe->heap.heap_array[0].ordinal + 1; in arm_spe_process_queues() 844 auxtrace_heap__add(&spe->heap, queue_nr, ts); in arm_spe_process_queues() 849 ret = auxtrace_heap__add(&spe->heap, queue_nr, ts); in arm_spe_process_queues() [all …]
|
D | auxtrace.c | 487 int auxtrace_heap__add(struct auxtrace_heap *heap, unsigned int queue_nr, in auxtrace_heap__add() argument 492 if (queue_nr >= heap->heap_sz) { in auxtrace_heap__add() 497 heap_array = realloc(heap->heap_array, in auxtrace_heap__add() 501 heap->heap_array = heap_array; in auxtrace_heap__add() 502 heap->heap_sz = heap_sz; in auxtrace_heap__add() 505 auxtrace_heapify(heap->heap_array, heap->heap_cnt++, queue_nr, ordinal); in auxtrace_heap__add() 510 void auxtrace_heap__free(struct auxtrace_heap *heap) in auxtrace_heap__free() argument 512 zfree(&heap->heap_array); in auxtrace_heap__free() 513 heap->heap_cnt = 0; in auxtrace_heap__free() 514 heap->heap_sz = 0; in auxtrace_heap__free() [all …]
|
D | auxtrace.h | 551 int auxtrace_heap__add(struct auxtrace_heap *heap, unsigned int queue_nr, 553 void auxtrace_heap__pop(struct auxtrace_heap *heap); 554 void auxtrace_heap__free(struct auxtrace_heap *heap);
|
D | intel-pt.c | 64 struct auxtrace_heap heap; member 1646 ret = auxtrace_heap__add(&pt->heap, queue_nr, ptq->timestamp); in intel_pt_setup_queue() 3017 if (!pt->heap.heap_cnt) in intel_pt_process_queues() 3020 if (pt->heap.heap_array[0].ordinal >= timestamp) in intel_pt_process_queues() 3023 queue_nr = pt->heap.heap_array[0].queue_nr; in intel_pt_process_queues() 3028 queue_nr, pt->heap.heap_array[0].ordinal, in intel_pt_process_queues() 3031 auxtrace_heap__pop(&pt->heap); in intel_pt_process_queues() 3033 if (pt->heap.heap_cnt) { in intel_pt_process_queues() 3034 ts = pt->heap.heap_array[0].ordinal + 1; in intel_pt_process_queues() 3046 auxtrace_heap__add(&pt->heap, queue_nr, ts); in intel_pt_process_queues() [all …]
|
D | cs-etm.c | 46 struct auxtrace_heap heap; member 1170 ret = auxtrace_heap__add(&etm->heap, cs_queue_nr, cs_timestamp); in cs_etm__queue_first_cs_timestamp() 2562 if (!etm->heap.heap_cnt) in cs_etm__process_timestamped_queues() 2566 cs_queue_nr = etm->heap.heap_array[0].queue_nr; in cs_etm__process_timestamped_queues() 2576 auxtrace_heap__pop(&etm->heap); in cs_etm__process_timestamped_queues() 2643 ret = auxtrace_heap__add(&etm->heap, cs_queue_nr, cs_timestamp); in cs_etm__process_timestamped_queues()
|
/tools/testing/selftests/sgx/ |
D | main.c | 390 struct encl_segment *heap; variable 431 heap = &self->encl.segment_tbl[self->encl.nr_segments - 1]; 453 modt_ioc.offset = heap->offset; 454 modt_ioc.length = heap->size; 458 heap->size); 465 EXPECT_EQ(modt_ioc.count, heap->size); 468 addr = self->encl.encl_base + heap->offset; 474 heap->size); 475 for (i = 0; i < heap->size; i += 4096) { 491 remove_ioc.offset = heap->offset; [all …]
|
/tools/memory-model/Documentation/ |
D | access-marking.txt | 181 fields in the task_struct structure, and task-private heap data.
|