Lines Matching refs:rec
634 struct pkey_malloc_record *rec = NULL; in record_pkey_malloc() local
637 rec = &pkey_malloc_records[i]; in record_pkey_malloc()
639 if (rec) in record_pkey_malloc()
642 if (!rec) { in record_pkey_malloc()
651 rec = &pkey_malloc_records[nr_pkey_malloc_records]; in record_pkey_malloc()
657 memset(rec + i, 0, sizeof(*rec)); in record_pkey_malloc()
660 (int)(rec - pkey_malloc_records), rec, ptr, size); in record_pkey_malloc()
661 rec->ptr = ptr; in record_pkey_malloc()
662 rec->size = size; in record_pkey_malloc()
663 rec->prot = prot; in record_pkey_malloc()
664 pkey_last_malloc_record = rec; in record_pkey_malloc()
674 struct pkey_malloc_record *rec = &pkey_malloc_records[i]; in free_pkey_malloc() local
676 ptr, i, rec, rec->ptr, rec->size); in free_pkey_malloc()
677 if ((ptr < rec->ptr) || in free_pkey_malloc()
678 (ptr >= rec->ptr + rec->size)) in free_pkey_malloc()
682 ptr, i, rec, rec->ptr, rec->size); in free_pkey_malloc()
684 ret = munmap(rec->ptr, rec->size); in free_pkey_malloc()
687 dprintf3("clearing rec->ptr, rec: %p\n", rec); in free_pkey_malloc()
688 rec->ptr = NULL; in free_pkey_malloc()
689 dprintf3("done clearing rec->ptr, rec: %p\n", rec); in free_pkey_malloc()