/freebsd-13-stable/contrib/processor-trace/libipt/src/ |
H A D | pt_image_section_cache.c | 57 int pt_iscache_init(struct pt_image_section_cache *iscache, const char *name) argument 59 if (!iscache) 62 memset(iscache, 0, sizeof(*iscache)); 63 iscache->limit = UINT64_MAX; 65 iscache->name = dupstr(name); 66 if (!iscache->name) 74 errcode = mtx_init(&iscache->lock, mtx_plain); 83 void pt_iscache_fini(struct pt_image_section_cache *iscache) argument 85 if (!iscache) 98 pt_iscache_lock(struct pt_image_section_cache *iscache) argument 116 pt_iscache_unlock(struct pt_image_section_cache *iscache) argument 139 pt_iscache_expand(struct pt_image_section_cache *iscache) argument 163 pt_iscache_find_locked(struct pt_image_section_cache *iscache, const char *filename, uint64_t offset, uint64_t size, uint64_t laddr) argument 230 pt_iscache_lru_prune(struct pt_image_section_cache *iscache, struct pt_iscache_lru_entry **tail) argument 267 pt_isache_lru_new(struct pt_image_section_cache *iscache, struct pt_section *section) argument 320 pt_iscache_lru_add(struct pt_image_section_cache *iscache, struct pt_section *section) argument 351 pt_iscache_lru_remove(struct pt_image_section_cache *iscache, const struct pt_section *section) argument 381 pt_iscache_lru_resize(struct pt_image_section_cache *iscache, struct pt_section *section, uint64_t memsize) argument 435 pt_iscache_lru_clear(struct pt_image_section_cache *iscache) argument 463 pt_iscache_find_section_locked(const struct pt_image_section_cache *iscache, const char *filename, uint64_t offset, uint64_t size, uint64_t laddr) argument 524 pt_iscache_add(struct pt_image_section_cache *iscache, struct pt_section *section, uint64_t laddr) argument 756 pt_iscache_find(struct pt_image_section_cache *iscache, const char *filename, uint64_t offset, uint64_t size, uint64_t laddr) argument 775 pt_iscache_lookup(struct pt_image_section_cache *iscache, struct pt_section **section, uint64_t *laddr, int isid) argument 816 pt_iscache_clear(struct pt_image_section_cache *iscache) argument 871 struct pt_image_section_cache *iscache; local 880 pt_iscache_free(struct pt_image_section_cache *iscache) argument 889 pt_iscache_set_limit(struct pt_image_section_cache *iscache, uint64_t limit) argument 916 pt_iscache_name(const struct pt_image_section_cache *iscache) argument 924 pt_iscache_add_file(struct pt_image_section_cache *iscache, const char *filename, uint64_t offset, uint64_t size, uint64_t vaddr) argument 1002 pt_iscache_read(struct pt_image_section_cache *iscache, uint8_t *buffer, uint64_t size, int isid, uint64_t vaddr) argument 1050 pt_iscache_notify_map(struct pt_image_section_cache *iscache, struct pt_section *section) argument 1074 pt_iscache_notify_resize(struct pt_image_section_cache *iscache, struct pt_section *section, uint64_t memsize) argument [all...] |
H A D | pt_section.c | 269 struct pt_image_section_cache *iscache) 274 if (!section || !iscache) 284 if (section->iscache || !ucount) 287 section->iscache = iscache; 302 if (section->iscache != iscache) 315 struct pt_image_section_cache *iscache) 320 if (!section || !iscache) 327 if (section->iscache ! 268 pt_section_attach(struct pt_section *section, struct pt_image_section_cache *iscache) argument 314 pt_section_detach(struct pt_section *section, struct pt_image_section_cache *iscache) argument 445 struct pt_image_section_cache *iscache; local 532 struct pt_image_section_cache *iscache; local [all...] |
H A D | pt_image.c | 625 struct pt_image_section_cache *iscache, int isid, 633 if (!image || !iscache) 636 errcode = pt_iscache_lookup(iscache, §ion, &vaddr, isid); 624 pt_image_add_cached(struct pt_image *image, struct pt_image_section_cache *iscache, int isid, const struct pt_asid *uasid) argument
|
/freebsd-13-stable/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_image_section_cache.h | 120 extern int pt_iscache_init(struct pt_image_section_cache *iscache, 124 extern void pt_iscache_fini(struct pt_image_section_cache *iscache); 128 * Adds @section at @laddr to @iscache and returns its isid. If a similar 137 * Returns -pte_internal if @iscache or @section is NULL. 140 extern int pt_iscache_add(struct pt_image_section_cache *iscache, 146 * loaded at @laddr is found in @iscache. 149 * Returns -pte_internal if @iscache or @filename is NULL. 151 extern int pt_iscache_find(struct pt_image_section_cache *iscache, 162 * Returns -pte_internal if @iscache, @section, or @laddr is NULL. 163 * Returns -pte_bad_image if @iscache doe [all...] |
H A D | pt_section.h | 87 /* A pointer to the iscache attached to this section. 89 * The pointer is initialized when the iscache attaches and cleared when 90 * it detaches again. There can be at most one iscache attached to this 93 * In addition to attaching, the iscache will need to obtain a reference 96 struct pt_image_section_cache *iscache; member in struct:pt_section 131 /* A lock protecting the @iscache and @acount fields. 134 * the iscache is mapping or unmapping this section. 218 * Similar to pt_section_get() but sets @section->iscache to @iscache. 221 * Returns -pte_internal if @section or @iscache i [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-image_section_cache.c | 49 /* The iscache back link. */ 50 struct pt_image_section_cache *iscache; member in struct:pt_section 67 /* A lock protecting the iscache and acount fields. */ 78 struct pt_image_section_cache *iscache); 80 struct pt_image_section_cache *iscache); 263 struct pt_image_section_cache *iscache) 267 if (!section || !iscache) 277 if (section->iscache || !ucount) 280 section->iscache = iscache; 262 pt_section_attach(struct pt_section *section, struct pt_image_section_cache *iscache) argument 307 pt_section_detach(struct pt_section *section, struct pt_image_section_cache *iscache) argument 344 struct pt_image_section_cache *iscache; local 417 struct pt_image_section_cache *iscache; local 537 struct pt_image_section_cache iscache; member in struct:iscache_fixture 654 struct pt_image_section_cache iscache; local 679 struct pt_image_section_cache iscache; local 715 struct pt_image_section_cache iscache; local 729 struct pt_image_section_cache iscache; local [all...] |
H A D | ptunit-section.c | 46 extern int pt_iscache_notify_map(struct pt_image_section_cache *iscache, 48 extern int pt_iscache_notify_resize(struct pt_image_section_cache *iscache, 51 int pt_iscache_notify_map(struct pt_image_section_cache *iscache, argument 54 if (!iscache) 57 if (iscache->map <= 0) 58 return iscache->map; 61 iscache->map = 0; 66 int pt_iscache_notify_resize(struct pt_image_section_cache *iscache, argument 72 if (!iscache) 75 if (iscache 300 struct pt_image_section_cache iscache; local 318 struct pt_image_section_cache iscache; local 387 struct pt_image_section_cache iscache; local 409 struct pt_image_section_cache iscache; local 537 struct pt_image_section_cache iscache; local 568 struct pt_image_section_cache iscache, bad; local 596 struct pt_image_section_cache iscache, bad; local 646 struct pt_image_section_cache iscache; local 683 struct pt_image_section_cache iscache; local 709 struct pt_image_section_cache iscache; local [all...] |
H A D | ptunit-image.c | 89 extern int pt_iscache_lookup(struct pt_image_section_cache *iscache, 118 struct pt_image_section_cache iscache; member in struct:image_fixture 174 index = ifix->iscache.nsecs; 178 ifix->iscache.section[index] = section; 179 ifix->iscache.laddr[index] = laddr; 182 ifix->iscache.nsecs = index; 262 int pt_iscache_lookup(struct pt_image_section_cache *iscache, argument 265 if (!iscache || !section || !laddr) 268 if (!isid || iscache->nsecs < isid) 273 *section = iscache 1796 struct pt_image_section_cache iscache; local [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/include/ |
H A D | intel-pt.h | 1703 * The \@iscache must have been allocated with pt_iscache_alloc(). 1704 * The \@iscache must not be used after a successful return. 1706 extern pt_export void pt_iscache_free(struct pt_image_section_cache *iscache); 1715 * Returns -pte_invalid if \@iscache is NULL. 1718 pt_iscache_set_limit(struct pt_image_section_cache *iscache, uint64_t limit); 1722 * Returns a pointer to \@iscache's name or NULL if there is no name. 1725 pt_iscache_name(const struct pt_image_section_cache *iscache); 1730 * \@filename loaded at the virtual address \@vaddr if \@iscache does not 1734 * in \@iscache. 1740 * Returns -pte_invalid if \@iscache o [all...] |
/freebsd-13-stable/sys/contrib/openzfs/cmd/zinject/ |
H A D | translate.c | 337 boolean_t isspare, iscache; local 348 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL);
|