Lines Matching refs:rec
688 struct pkey_malloc_record *rec = NULL; in record_pkey_malloc() local
691 rec = &pkey_malloc_records[i]; in record_pkey_malloc()
693 if (rec) in record_pkey_malloc()
696 if (!rec) { in record_pkey_malloc()
705 rec = &pkey_malloc_records[nr_pkey_malloc_records]; in record_pkey_malloc()
711 memset(rec + i, 0, sizeof(*rec)); in record_pkey_malloc()
714 (int)(rec - pkey_malloc_records), rec, ptr, size); in record_pkey_malloc()
715 rec->ptr = ptr; in record_pkey_malloc()
716 rec->size = size; in record_pkey_malloc()
717 rec->prot = prot; in record_pkey_malloc()
718 pkey_last_malloc_record = rec; in record_pkey_malloc()
728 struct pkey_malloc_record *rec = &pkey_malloc_records[i]; in free_pkey_malloc() local
730 ptr, i, rec, rec->ptr, rec->size); in free_pkey_malloc()
731 if ((ptr < rec->ptr) || in free_pkey_malloc()
732 (ptr >= rec->ptr + rec->size)) in free_pkey_malloc()
736 ptr, i, rec, rec->ptr, rec->size); in free_pkey_malloc()
738 ret = munmap(rec->ptr, rec->size); in free_pkey_malloc()
741 dprintf3("clearing rec->ptr, rec: %p\n", rec); in free_pkey_malloc()
742 rec->ptr = NULL; in free_pkey_malloc()
743 dprintf3("done clearing rec->ptr, rec: %p\n", rec); in free_pkey_malloc()