/freebsd-current/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-current/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-current/lib/libpmcstat/ |
H A D | libpmcstat_symbol.c | 59 struct pmcstat_image *image; local 72 image = pcm->ppm_image; 73 if (image->pi_name == NULL) 75 name1 = pmcstat_string_unintern(image->pi_name); 82 if (!found || image->pi_symbols == NULL) 87 for (i = 0; i < image->pi_symcount; i++) { 88 sym = &image->pi_symbols[i]; 99 *addr_start = (image->pi_vaddr - image->pi_start + 101 *addr_end = (image 131 pmcstat_symbol_search(struct pmcstat_image *image, uintfptr_t addr) argument [all...] |
H A D | libpmcstat_image.c | 60 pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e, argument 92 firsttime = image->pi_symbols == NULL; 93 symptr = reallocarray(image->pi_symbols, 94 image->pi_symcount + nfuncsyms, sizeof(*symptr)); 95 if (symptr == image->pi_symbols) /* realloc() failed. */ 97 image->pi_symbols = symptr; 102 symptr += image->pi_symcount; 113 if (!firsttime && pmcstat_symbol_search(image, sym.st_value)) 139 symptr->ps_start = sym.st_value - image->pi_vaddr; 146 image 183 pmcstat_image_link(struct pmcstat_process *pp, struct pmcstat_image *image, uintfptr_t start) argument 249 pmcstat_image_get_aout_params(struct pmcstat_image *image, struct pmcstat_args *args) argument 299 pmcstat_image_get_elf_params(struct pmcstat_image *image, struct pmcstat_args *args) argument 476 pmcstat_image_determine_type(struct pmcstat_image *image, struct pmcstat_args *args) argument [all...] |
H A D | libpmcstat_process.c | 56 * Associate an AOUT image with a process. 61 struct pmcstat_image *image, uintptr_t baseaddr) 64 (void) image; 70 * Associate an ELF image with a process. 75 struct pmcstat_image *image, uintptr_t baseaddr, uintptr_t dynaddr, 81 assert(image->pi_type == PMCSTAT_IMAGE_ELF32 || 82 image->pi_type == PMCSTAT_IMAGE_ELF64); 89 pmcstat_image_link(pp, image, image->pi_vaddr + dynaddr); 99 if (image 60 pmcstat_process_aout_exec(struct pmcstat_process *pp, struct pmcstat_image *image, uintptr_t baseaddr) argument 74 pmcstat_process_elf_exec(struct pmcstat_process *pp, struct pmcstat_image *image, uintptr_t baseaddr, uintptr_t dynaddr, struct pmcstat_args *args, struct pmc_plugins *plugins, struct pmcstat_stats *pmcstat_stats) argument 150 struct pmcstat_image *image; local [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | trim6.sh | 52 image=`echo $mp/diskimage | sed s#//#/#` # fix "//" for case mp = "/" 53 trap "rm -f $image" EXIT INT 55 echo "dd if=/dev/zero of=$image bs=1m count=$free" 56 dd if=/dev/zero of=$image bs=1m count=$free status=none
|
H A D | trim7.sh | 54 image=`echo $mp/diskimage | sed s#//#/#` # fix "//" for case mp = "/" 56 echo "dd if=/dev/zero of=$image bs=1m count=$free" 57 dd if=/dev/zero of=$image bs=1m count=$free status=none 58 rm $image
|
/freebsd-current/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-current/usr.sbin/pmcstat/ |
H A D | pmcpl_annotate.c | 84 struct pmcstat_image *image; local 97 image = map->ppm_image; 99 (image->pi_vaddr - image->pi_start)); 100 sym = pmcstat_symbol_search(image, newpc); 108 image->pi_vaddr), (uintmax_t)(sym->ps_end + 109 image->pi_vaddr));
|
H A D | pmcpl_annotate_cg.c | 87 struct pmcstat_image *image; local 97 image = NULL; 105 image = map->ppm_image; 107 (image->pi_vaddr - image->pi_start)); 108 sym = pmcstat_symbol_search(image, newpc); 111 if (map != NULL && image != NULL && sym != NULL) { 112 (void) pmcstat_image_addr2line(image, cc[i],
|
H A D | pmcstat_log.h | 53 int pmcstat_image_addr2line(struct pmcstat_image *image, uintfptr_t addr,
|
H A D | pmcpl_gprof.c | 124 struct pmcstat_image *image) 137 gm.lpc = image->pi_start; 138 gm.hpc = image->pi_end; 175 * (image,pmcid) combination. Return the interned string. 179 pmcstat_gmon_create_name(const char *samplesdir, struct pmcstat_image *image, argument 191 pmcstat_string_unintern(image->pi_samplename)); 236 pmcstat_gmon_append_arc(struct pmcstat_image *image, pmc_id_t pmcid, argument 243 if ((pgf = pmcstat_image_find_gmonfile(image, pmcid)) == NULL) 252 arc.raw_frompc = rawfrom + image->pi_vaddr; 253 arc.raw_selfpc = rawto + image 123 pmcstat_gmon_create_file(struct pmcstat_gmonfile *pgf, struct pmcstat_image *image) argument 261 pmcstat_image_find_gmonfile(struct pmcstat_image *image, pmc_id_t pmcid) argument 415 struct pmcstat_image *image; local [all...] |
/freebsd-current/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-current/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-current/usr.bin/mkimg/tests/ |
H A D | mkimg_test.sh | 72 local baseline image result tmpfile update 74 image=$1 77 baseline=$image.hex 92 rm $image $result _tmp-* 114 image=`makeimage $format $scheme $blksz $geom img $partinfo` 115 result=$image.out 116 hexdump -C $image > $result 118 mkimg_rebase $image $result 120 baseline=`atf_get_srcdir`/$image
|
/freebsd-current/sys/contrib/dev/iwlwifi/fw/ |
H A D | paging.c | 41 const struct fw_img *image) 53 num_of_pages = image->paging_mem_size / FW_PAGING_SIZE; 109 const struct fw_img *image) 115 * find where is the paging image start point: 116 * if CPU2 exist and it's in paging format, then the image looks like: 123 * CPU2 paging image (including instruction and data) 125 for (sec_idx = 0; sec_idx < image->num_sec; sec_idx++) { 126 if (image->sec[sec_idx].offset == PAGING_SEPARATOR_SECTION) { 136 if (sec_idx >= image->num_sec - 1) { 146 if (image 40 iwl_alloc_fw_paging_mem(struct iwl_fw_runtime *fwrt, const struct fw_img *image) argument 108 iwl_fill_paging_mem(struct iwl_fw_runtime *fwrt, const struct fw_img *image) argument [all...] |
/freebsd-current/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-current/contrib/netbsd-tests/fs/common/ |
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);
|