/freebsd-13-stable/contrib/elftoolchain/libelf/ |
H A D | elf_memory.c | 34 elf_memory(char *image, size_t sz) argument 41 if (image == NULL || sz == 0) { 46 return (_libelf_memory((unsigned char *) image, sz, 1));
|
H A D | elf_open.c | 54 elf_openmemory(char *image, size_t sz) argument 61 if (image == NULL || sz == 0) { 66 return (_libelf_memory((unsigned char *) image, sz, 0));
|
H A D | libelf_memory.c | 37 * Create an ELF descriptor for a memory image, optionally reporting 42 _libelf_memory(unsigned char *image, size_t sz, int reporterror) argument 49 assert(image != NULL); 56 e->e_rawfile = image; 64 if (sz > EI_NIDENT && LIBELF_IS_ELF(image)) { 65 e_byteorder = image[EI_DATA]; 66 e_class = image[EI_CLASS]; 67 e_version = image[EI_VERSION]; 92 strncmp((const char *) image, ARMAG, (size_t) SARMAG) == 0)
|
/freebsd-13-stable/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_image.h | 47 /* The image section identifier. */ 51 /* A traced image consisting of a collection of sections. */ 53 /* The optional image name. */ 69 /* Initialize an image with an optional @name. */ 70 extern void pt_image_init(struct pt_image *image, const char *name); 72 /* Finalize an image. 76 extern void pt_image_fini(struct pt_image *image); 78 /* Add a section to an image. 80 * Add @section identified by @isid to @image at @vaddr in @asid. If @section 86 * Returns -pte_internal if @image, [all...] |
H A D | pt_msec_cache.h | 67 * If @cache is not empty and @image would find it when looking up @vaddr in 69 * its image section identifier. 77 struct pt_image *image, uint64_t vaddr); 81 * Look up @vaddr in @asid in @image and cache as well as provide the found 82 * section in @pmsec and return its image section identifier. 92 struct pt_image *image,
|
/freebsd-13-stable/lib/libpmcstat/ |
H A D | libpmcstat_image.c | 62 pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e, argument 94 firsttime = image->pi_symbols == NULL; 95 symptr = reallocarray(image->pi_symbols, 96 image->pi_symcount + nfuncsyms, sizeof(*symptr)); 97 if (symptr == image->pi_symbols) /* realloc() failed. */ 99 image->pi_symbols = symptr; 104 symptr += image->pi_symcount; 115 if (!firsttime && pmcstat_symbol_search(image, sym.st_value)) 131 symptr->ps_start = sym.st_value - image->pi_vaddr; 138 image 175 pmcstat_image_link(struct pmcstat_process *pp, struct pmcstat_image *image, uintfptr_t start) argument 241 pmcstat_image_get_aout_params(struct pmcstat_image *image, struct pmcstat_args *args) argument 291 pmcstat_image_get_elf_params(struct pmcstat_image *image, struct pmcstat_args *args) argument 478 pmcstat_image_determine_type(struct pmcstat_image *image, struct pmcstat_args *args) argument [all...] |
H A D | libpmcstat_symbol.c | 62 struct pmcstat_image *image; local 75 image = pcm->ppm_image; 76 if (image->pi_name == NULL) 78 name1 = pmcstat_string_unintern(image->pi_name); 85 if (!found || image->pi_symbols == NULL) 90 for (i = 0; i < image->pi_symcount; i++) { 91 sym = &image->pi_symbols[i]; 102 *addr_start = (image->pi_vaddr - image->pi_start + 104 *addr_end = (image 134 pmcstat_symbol_search(struct pmcstat_image *image, uintfptr_t addr) argument [all...] |
H A D | libpmcstat_process.c | 59 * Associate an AOUT image with a process. 64 struct pmcstat_image *image, uintfptr_t entryaddr) 67 (void) image; 73 * Associate an ELF image with a process. 78 struct pmcstat_image *image, uintfptr_t entryaddr, 85 assert(image->pi_type == PMCSTAT_IMAGE_ELF32 || 86 image->pi_type == PMCSTAT_IMAGE_ELF64); 89 pmcstat_image_link(pp, image, image->pi_vaddr); 99 if (image 63 pmcstat_process_aout_exec(struct pmcstat_process *pp, struct pmcstat_image *image, uintfptr_t entryaddr) argument 77 pmcstat_process_elf_exec(struct pmcstat_process *pp, struct pmcstat_image *image, uintfptr_t entryaddr, struct pmcstat_args *args, struct pmc_plugins *plugins, struct pmcstat_stats *pmcstat_stats) argument 153 struct pmcstat_image *image; local [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/src/ |
H A D | pt_image.c | 109 void pt_image_init(struct pt_image *image, const char *name) argument 111 if (!image) 114 memset(image, 0, sizeof(*image)); 116 image->name = dupstr(name); 119 void pt_image_fini(struct pt_image *image) argument 121 if (!image) 124 pt_section_list_free_tail(image->sections); 125 free(image->name); 127 memset(image, 132 struct pt_image *image; local 141 pt_image_free(struct pt_image *image) argument 147 pt_image_name(const struct pt_image *image) argument 155 pt_image_add(struct pt_image *image, struct pt_section *section, const struct pt_asid *asid, uint64_t vaddr, int isid) argument 267 pt_image_remove(struct pt_image *image, struct pt_section *section, const struct pt_asid *asid, uint64_t vaddr) argument 307 pt_image_add_file(struct pt_image *image, const char *filename, uint64_t offset, uint64_t size, const struct pt_asid *uasid, uint64_t vaddr) argument 341 pt_image_copy(struct pt_image *image, const struct pt_image *src) argument 372 pt_image_remove_by_filename(struct pt_image *image, const char *filename, const struct pt_asid *uasid) argument 422 pt_image_remove_by_asid(struct pt_image *image, const struct pt_asid *uasid) argument 464 pt_image_set_callback(struct pt_image *image, read_memory_callback_t *callback, void *context) argument 476 pt_image_read_callback(struct pt_image *image, int *isid, uint8_t *buffer, uint16_t size, const struct pt_asid *asid, uint64_t addr) argument 535 pt_image_fetch_section(struct pt_image *image, const struct pt_asid *asid, uint64_t vaddr) argument 574 pt_image_read(struct pt_image *image, int *isid, uint8_t *buffer, uint16_t size, const struct pt_asid *asid, uint64_t addr) argument 624 pt_image_add_cached(struct pt_image *image, struct pt_image_section_cache *iscache, int isid, const struct pt_asid *uasid) argument 656 pt_image_find(struct pt_image *image, struct pt_mapped_section *usec, const struct pt_asid *asid, uint64_t vaddr) argument 687 pt_image_validate(const struct pt_image *image, const struct pt_mapped_section *usec, uint64_t vaddr, int isid) argument [all...] |
H A D | pt_insn.c | 215 * represented via new image sections overlapping the original 216 * text section's image section. We stop reading memory at the 228 struct pt_image *image, 246 /* Read the remaining bytes from the image. */ 247 size = pt_image_read(image, &isid, &insn->raw[isize], remaining, asid, 289 return pt_insn_decode_retry(insn, iext, image, asid); 292 /* We succeeded this time, so the instruction crosses image section 310 struct pt_image *image, const struct pt_asid *asid) 318 size = pt_image_read(image, &insn->isid, insn->raw, sizeof(insn->raw), 339 return pt_insn_decode_retry(insn, iext, image, asi 227 pt_insn_decode_retry(struct pt_insn *insn, struct pt_insn_ext *iext, struct pt_image *image, const struct pt_asid *asid) argument 309 pt_insn_decode(struct pt_insn *insn, struct pt_insn_ext *iext, struct pt_image *image, const struct pt_asid *asid) argument 345 pt_insn_range_is_contiguous(uint64_t begin, uint64_t end, enum pt_exec_mode mode, struct pt_image *image, const struct pt_asid *asid, size_t steps) argument [all...] |
H A D | pt_msec_cache.c | 78 struct pt_image *image, uint64_t vaddr) 89 errcode = pt_image_validate(image, msec, vaddr, isid); 101 struct pt_image *image, const struct pt_asid *asid, 117 isid = pt_image_find(image, msec, asid, vaddr); 76 pt_msec_cache_read(struct pt_msec_cache *cache, const struct pt_mapped_section **pmsec, struct pt_image *image, uint64_t vaddr) argument 99 pt_msec_cache_fill(struct pt_msec_cache *cache, const struct pt_mapped_section **pmsec, struct pt_image *image, const struct pt_asid *asid, uint64_t vaddr) argument
|
/freebsd-13-stable/usr.sbin/pmcstat/ |
H A D | pmcpl_annotate.c | 87 struct pmcstat_image *image; local 100 image = map->ppm_image; 102 (image->pi_vaddr - image->pi_start)); 103 sym = pmcstat_symbol_search(image, newpc); 111 image->pi_vaddr), (uintmax_t)(sym->ps_end + 112 image->pi_vaddr));
|
H A D | pmcpl_annotate_cg.c | 90 struct pmcstat_image *image; local 100 image = NULL; 108 image = map->ppm_image; 110 (image->pi_vaddr - image->pi_start)); 111 sym = pmcstat_symbol_search(image, newpc); 114 if (map != NULL && image != NULL && sym != NULL) { 115 (void) pmcstat_image_addr2line(image, cc[i],
|
H A D | pmcstat_log.h | 55 int pmcstat_image_addr2line(struct pmcstat_image *image, uintfptr_t addr,
|
H A D | pmcpl_gprof.c | 127 struct pmcstat_image *image) 140 gm.lpc = image->pi_start; 141 gm.hpc = image->pi_end; 178 * (image,pmcid) combination. Return the interned string. 182 pmcstat_gmon_create_name(const char *samplesdir, struct pmcstat_image *image, argument 194 pmcstat_string_unintern(image->pi_samplename)); 239 pmcstat_gmon_append_arc(struct pmcstat_image *image, pmc_id_t pmcid, argument 246 if ((pgf = pmcstat_image_find_gmonfile(image, pmcid)) == NULL) 255 arc.raw_frompc = rawfrom + image->pi_vaddr; 256 arc.raw_selfpc = rawto + image 126 pmcstat_gmon_create_file(struct pmcstat_gmonfile *pgf, struct pmcstat_image *image) argument 264 pmcstat_image_find_gmonfile(struct pmcstat_image *image, pmc_id_t pmcid) argument 418 struct pmcstat_image *image; local [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-image.c | 77 /* A fake image section cache. */ 94 /* A test fixture providing an image, test sections, and asids. */ 96 /* The image. */ 97 struct pt_image image; member in struct:image_fixture 114 /* An initially empty image as destination for image copies. */ 423 struct pt_image image; local 425 memset(&image, 0xcd, sizeof(image)); 427 pt_image_init(&image, NUL 461 struct pt_image image; local 483 struct pt_image image; local 512 struct pt_image image; local 1797 struct pt_image image; local [all...] |
H A D | ptunit-msec_cache.c | 104 /* A mock image. */ 106 /* The section stored in the image. 118 int pt_image_validate(struct pt_image *image, struct pt_mapped_section *msec, argument 126 if (!image || !msec) 129 section = image->section; 139 int pt_image_find(struct pt_image *image, struct pt_mapped_section *msec, argument 146 if (!image || !msec || !asid) 149 section = image->section; 169 /* A test image. */ 170 struct pt_image image; member in struct:test_fixture 208 struct pt_image image; local 227 struct pt_image image; local [all...] |
/freebsd-13-stable/contrib/netbsd-tests/fs/cd9660/ |
H A D | t_high_ino_big_file.sh | 28 # The image used in these tests has been provided by Thomas Schmitt under 83 bunzip2 < $(atf_get_srcdir)/pr_48787.image.bz2 > pr_48787.image 86 rump_cd9660 -o norrip ./pr_48787.image ${mntpnt} 94 rump_cd9660 ./pr_48787.image ${mntpnt}
|
/freebsd-13-stable/release/ |
H A D | Makefile.ec2 | 5 # Makefile for creating an EC2 AMI from a disk image. 27 .if !exists(/usr/local/bin/bsdec2-image-upload) 35 .if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile) 36 env - PATH=$$PATH make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean 41 env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload 64 /usr/local/bin/bsdec2-image-upload ${PUBLISH} ${PUBLICSNAP} \
|
/freebsd-13-stable/usr.bin/mkimg/tests/ |
H A D | mkimg_test.sh | 73 local baseline image result tmpfile update 75 image=$1 78 baseline=$image.hex 95 rm $image $result _tmp-* 117 image=`makeimage $format $scheme $blksz $geom img $partinfo` 118 result=$image.out 119 hexdump -C $image > $result 121 mkimg_rebase $image $result 123 baseline=`atf_get_srcdir`/$image
|
/freebsd-13-stable/contrib/netbsd-tests/dev/fss/ |
H A D | t_fss.sh | 45 dd if=/dev/zero of=./image bs=32k count=64 46 vndconfig -c vnd0 ./image
|
/freebsd-13-stable/contrib/netbsd-tests/fs/common/ |
H A D | fstest_ext2fs.c | 55 ext2fs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image, argument 65 size, image); 79 snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image); 82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
|
H A D | fstest_msdosfs.c | 55 msdosfs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image, argument 65 size, image); 79 snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image); 83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
|
H A D | fstest_sysvbfs.c | 55 sysvbfs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image, argument 65 size, image); 79 snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image); 82 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
|
H A D | fstest_v7fs.c | 55 v7fs_fstest_newfs(const atf_tc_t *tc, void **buf, const char *image, argument 65 size, image); 79 snprintf(args->ta_imgpath, MAXPATHLEN, "%s", image); 83 res = rump_pub_etfs_register(args->ta_devpath, image, RUMP_ETFS_BLK);
|