Lines Matching refs:desc
700 MMRangeDesc desc;
715 desc.map_start = vstart;
716 desc.map_end = vend;
717 desc.exec_offset = exec_offset;
718 desc.path = qemu_malloc(strlen(path) + 1);
719 if (desc.path == NULL) {
724 strcpy(desc.path, path);
726 ins_res = mmrangemap_insert(&proc->mmrange_map, &desc, &replaced);
730 qemu_free(desc.path);
737 replaced.map_end, desc.path, desc.map_start, desc.map_end);
748 MMRangeDesc desc;
756 if (mmrangemap_pull(&proc->mmrange_map, vstart, vend, &desc)) {
760 if (desc.map_start >= vstart && desc.map_end <= vend) {
763 proc->image_path, proc->pid, desc.path, vstart, vend, desc.exec_offset);
764 qemu_free(desc.path);
772 desc.map_start, desc.map_end, desc.exec_offset, vstart, vend);
773 if (desc.map_start == vstart) {
775 desc.exec_offset += vend - desc.map_start;
776 desc.map_start = vend;
777 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
778 } else if (desc.map_end == vend) {
780 desc.map_end = vstart;
781 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);
786 tail.map_end = desc.map_end;
787 tail.exec_offset = vend - desc.map_start + desc.exec_offset;
788 tail.path = qemu_malloc(strlen(desc.path) + 1);
789 strcpy(tail.path, desc.path);
791 desc.map_end = vstart;
792 mmrangemap_insert(&proc->mmrange_map, &desc, NULL);