Lines Matching full:image
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, @section, or @asid is NULL.
88 extern int pt_image_add(struct pt_image *image, struct pt_section *section,
91 /* Remove a section from an image.
94 * Returns -pte_internal if @image, @section, or @asid is NULL.
95 * Returns -pte_bad_image if @image does not contain @section at @vaddr.
97 extern int pt_image_remove(struct pt_image *image, struct pt_section *section,
100 /* Read memory from an image.
102 * Reads at most @size bytes from @image at @addr in @asid into @buffer.
105 * Returns -pte_internal if @image, @isid, @buffer, or @asid is NULL.
108 extern int pt_image_read(struct pt_image *image, int *isid, uint8_t *buffer,
112 /* Find an image section.
119 * Returns -pte_internal if @image, @msec, or @asid is NULL.
120 * Returns -pte_nomap if there is no such section in @image.
122 extern int pt_image_find(struct pt_image *image, struct pt_mapped_section *msec,
125 /* Validate an image section.
127 * Validate that a lookup of @vaddr in @msec->asid in @image would result in
133 * Returns -pte_invalid if @image or @msec is NULL.
136 extern int pt_image_validate(const struct pt_image *image,