Lines Matching refs:sts
332 int sts; in elfnote_dump_none() local
342 sts = dump_rtn(xch, args, (char*)&elfnote, sizeof(elfnote)); in elfnote_dump_none()
343 if ( sts != 0 ) in elfnote_dump_none()
344 return sts; in elfnote_dump_none()
354 int sts; in elfnote_dump_core_header() local
367 sts = dump_rtn(xch, args, (char*)&elfnote, sizeof(elfnote)); in elfnote_dump_core_header()
368 if ( sts != 0 ) in elfnote_dump_core_header()
369 return sts; in elfnote_dump_core_header()
377 int sts; in elfnote_dump_xen_version() local
393 sts = dump_rtn(xch, args, (char*)&elfnote, sizeof(elfnote)); in elfnote_dump_xen_version()
394 if ( sts != 0 ) in elfnote_dump_xen_version()
395 return sts; in elfnote_dump_xen_version()
403 int sts; in elfnote_dump_format_version() local
413 sts = dump_rtn(xch, args, (char*)&elfnote, sizeof(elfnote)); in elfnote_dump_format_version()
414 if ( sts != 0 ) in elfnote_dump_format_version()
415 return sts; in elfnote_dump_format_version()
436 int sts = -1; in xc_domain_dumpcore_via_callback() local
548 sts = xc_core_arch_memory_map_get(xch, &arch_ctxt, &info, in xc_domain_dumpcore_via_callback()
551 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
575 sts = xc_core_arch_map_p2m(xch, dinfo->guest_width, &info, live_shinfo, in xc_domain_dumpcore_via_callback()
577 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
625 sts = xc_core_shdr_set(xch, shdr, strtab, ELF_SHSTRTAB, SHT_STRTAB, 0, 0, 0, 0); in xc_domain_dumpcore_via_callback()
626 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
643 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_NOTE, SHT_NOTE, in xc_domain_dumpcore_via_callback()
645 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
657 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_PRSTATUS, in xc_domain_dumpcore_via_callback()
660 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
665 sts = xc_core_arch_context_get_shdr(xch, &arch_ctxt, sheaders, strtab, in xc_domain_dumpcore_via_callback()
667 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
681 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_SHARED_INFO, in xc_domain_dumpcore_via_callback()
684 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
710 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_PAGES, SHT_PROGBITS, in xc_domain_dumpcore_via_callback()
712 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
726 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_P2M, in xc_domain_dumpcore_via_callback()
734 sts = xc_core_shdr_set(xch, shdr, strtab, XEN_DUMPCORE_SEC_PFN, in xc_domain_dumpcore_via_callback()
739 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
752 sts = dump_rtn(xch, args, (char*)&ehdr, sizeof(ehdr)); in xc_domain_dumpcore_via_callback()
753 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
757 sts = dump_rtn(xch, args, (char*)sheaders->shdrs, in xc_domain_dumpcore_via_callback()
759 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
763 sts = elfnote_dump_none(xch, args, dump_rtn); in xc_domain_dumpcore_via_callback()
764 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
768 sts = elfnote_dump_core_header(xch, args, dump_rtn, &info, nr_vcpus, nr_pages); in xc_domain_dumpcore_via_callback()
769 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
773 sts = elfnote_dump_xen_version(xch, args, dump_rtn, dinfo->guest_width); in xc_domain_dumpcore_via_callback()
774 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
778 sts = elfnote_dump_format_version(xch, args, dump_rtn); in xc_domain_dumpcore_via_callback()
779 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
783 sts = dump_rtn(xch, args, (char *)ctxt, sizeof(*ctxt) * nr_vcpus); in xc_domain_dumpcore_via_callback()
784 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
790 sts = dump_rtn(xch, args, (char*)live_shinfo, PAGE_SIZE); in xc_domain_dumpcore_via_callback()
791 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
796 sts = xc_core_arch_context_dump(xch, &arch_ctxt, args, dump_rtn); in xc_domain_dumpcore_via_callback()
797 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
802 sts = dump_rtn(xch, args, dummy, dummy_len); in xc_domain_dumpcore_via_callback()
803 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
870 sts = dump_rtn( in xc_domain_dumpcore_via_callback()
872 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
882 sts = dump_rtn(xch, args, dump_mem_start, dump_mem - dump_mem_start); in xc_domain_dumpcore_via_callback()
883 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
893 sts = dump_rtn(xch, args, dump_mem_start, PAGE_SIZE); in xc_domain_dumpcore_via_callback()
894 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
908 sts = dump_rtn( in xc_domain_dumpcore_via_callback()
911 sts = dump_rtn( in xc_domain_dumpcore_via_callback()
913 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
917 sts = dump_rtn(xch, args, strtab->strings, strtab->length); in xc_domain_dumpcore_via_callback()
918 if ( sts != 0 ) in xc_domain_dumpcore_via_callback()
921 sts = 0; in xc_domain_dumpcore_via_callback()
944 return sts; in xc_domain_dumpcore_via_callback()
980 int sts; in xc_domain_dumpcore() local
988 sts = xc_domain_dumpcore_via_callback( in xc_domain_dumpcore()
996 return sts; in xc_domain_dumpcore()