Searched refs:image (Results 1 - 25 of 97) sorted by relevance

1234

/freebsd-13-stable/contrib/elftoolchain/libelf/
H A Delf_memory.c34 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 Delf_open.c54 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 Dlibelf_memory.c37 * 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 Dpt_image.h47 /* 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 Dpt_msec_cache.h67 * 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 Dlibpmcstat_image.c62 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 Dlibpmcstat_symbol.c62 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 Dlibpmcstat_process.c59 * 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 Dpt_image.c109 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 Dpt_insn.c215 * 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 Dpt_msec_cache.c78 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 Dpmcpl_annotate.c87 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 Dpmcpl_annotate_cg.c90 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 Dpmcstat_log.h55 int pmcstat_image_addr2line(struct pmcstat_image *image, uintfptr_t addr,
H A Dpmcpl_gprof.c127 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 Dptunit-image.c77 /* 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 Dptunit-msec_cache.c104 /* 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 Dt_high_ino_big_file.sh28 # 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 DMakefile.ec25 # 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 Dmkimg_test.sh73 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 Dt_fss.sh45 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 Dfstest_ext2fs.c55 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 Dfstest_msdosfs.c55 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 Dfstest_sysvbfs.c55 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 Dfstest_v7fs.c55 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);

Completed in 116 milliseconds

1234