Home
last modified time | relevance | path

Searched refs:iscache (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_image_section_cache.c57 int pt_iscache_init(struct pt_image_section_cache *iscache, const char *name) in pt_iscache_init() argument
59 if (!iscache) in pt_iscache_init()
62 memset(iscache, 0, sizeof(*iscache)); in pt_iscache_init()
63 iscache->limit = UINT64_MAX; in pt_iscache_init()
65 iscache->name = dupstr(name); in pt_iscache_init()
66 if (!iscache->name) in pt_iscache_init()
74 errcode = mtx_init(&iscache->lock, mtx_plain); in pt_iscache_init()
83 void pt_iscache_fini(struct pt_image_section_cache *iscache) in pt_iscache_fini() argument
85 if (!iscache) in pt_iscache_fini()
88 (void) pt_iscache_clear(iscache); in pt_iscache_fini()
[all …]
H A Dpt_section.c269 struct pt_image_section_cache *iscache) in pt_section_attach() argument
274 if (!section || !iscache) in pt_section_attach()
284 if (section->iscache || !ucount) in pt_section_attach()
287 section->iscache = iscache; in pt_section_attach()
302 if (section->iscache != iscache) in pt_section_attach()
315 struct pt_image_section_cache *iscache) in pt_section_detach() argument
320 if (!section || !iscache) in pt_section_detach()
327 if (section->iscache != iscache) in pt_section_detach()
341 section->iscache = NULL; in pt_section_detach()
445 struct pt_image_section_cache *iscache; in pt_section_alloc_bcache() local
[all …]
H A Dpt_image.c625 struct pt_image_section_cache *iscache, int isid, in pt_image_add_cached() argument
633 if (!image || !iscache) in pt_image_add_cached()
636 errcode = pt_iscache_lookup(iscache, &section, &vaddr, isid); in pt_image_add_cached()
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-image_section_cache.c50 struct pt_image_section_cache *iscache; member
78 struct pt_image_section_cache *iscache);
80 struct pt_image_section_cache *iscache);
263 struct pt_image_section_cache *iscache) in pt_section_attach() argument
267 if (!section || !iscache) in pt_section_attach()
277 if (section->iscache || !ucount) in pt_section_attach()
280 section->iscache = iscache; in pt_section_attach()
295 if (section->iscache != iscache) in pt_section_attach()
308 struct pt_image_section_cache *iscache) in pt_section_detach() argument
312 if (!section || !iscache) in pt_section_detach()
[all …]
H A Dptunit-section.c46 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, in pt_iscache_notify_map() argument
54 if (!iscache) in pt_iscache_notify_map()
57 if (iscache->map <= 0) in pt_iscache_notify_map()
58 return iscache->map; in pt_iscache_notify_map()
61 iscache->map = 0; in pt_iscache_notify_map()
66 int pt_iscache_notify_resize(struct pt_image_section_cache *iscache, in pt_iscache_notify_resize() argument
72 if (!iscache) in pt_iscache_notify_resize()
75 if (iscache->map <= 0) in pt_iscache_notify_resize()
[all …]
H A Dptunit-image.c89 extern int pt_iscache_lookup(struct pt_image_section_cache *iscache,
118 struct pt_image_section_cache iscache; member
174 index = ifix->iscache.nsecs; in ifix_cache_section()
178 ifix->iscache.section[index] = section; in ifix_cache_section()
179 ifix->iscache.laddr[index] = laddr; in ifix_cache_section()
182 ifix->iscache.nsecs = index; in ifix_cache_section()
262 int pt_iscache_lookup(struct pt_image_section_cache *iscache, in pt_iscache_lookup() argument
265 if (!iscache || !section || !laddr) in pt_iscache_lookup()
268 if (!isid || iscache->nsecs < isid) in pt_iscache_lookup()
273 *section = iscache->section[isid]; in pt_iscache_lookup()
[all …]
/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_image_section_cache.h120 extern int pt_iscache_init(struct pt_image_section_cache *iscache,
124 extern void pt_iscache_fini(struct pt_image_section_cache *iscache);
140 extern int pt_iscache_add(struct pt_image_section_cache *iscache,
151 extern int pt_iscache_find(struct pt_image_section_cache *iscache,
165 extern int pt_iscache_lookup(struct pt_image_section_cache *iscache,
170 extern int pt_iscache_clear(struct pt_image_section_cache *iscache);
186 extern int pt_iscache_notify_map(struct pt_image_section_cache *iscache,
203 extern int pt_iscache_notify_resize(struct pt_image_section_cache *iscache,
H A Dpt_section.h96 struct pt_image_section_cache *iscache; member
227 struct pt_image_section_cache *iscache);
240 struct pt_image_section_cache *iscache);
336 if (section && !section->iscache) in pt_section_on_map()
/freebsd/contrib/processor-trace/libipt/include/
H A Dintel-pt.h1706 extern pt_export void pt_iscache_free(struct pt_image_section_cache *iscache);
1718 pt_iscache_set_limit(struct pt_image_section_cache *iscache, uint64_t limit);
1725 pt_iscache_name(const struct pt_image_section_cache *iscache);
1743 extern pt_export int pt_iscache_add_file(struct pt_image_section_cache *iscache,
1765 extern pt_export int pt_iscache_read(struct pt_image_section_cache *iscache,
1831 struct pt_image_section_cache *iscache,
H A Dintel-pt.h.in1703 * 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 or \@filename is NULL.
[all …]
/freebsd/sys/contrib/openzfs/cmd/zinject/
H A Dtranslate.c338 boolean_t isspare, iscache; in translate_device() local
349 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL); in translate_device()