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.c59 if (!iscache) in pt_iscache_init()
62 memset(iscache, 0, sizeof(*iscache)); in pt_iscache_init()
85 if (!iscache) in pt_iscache_fini()
100 if (!iscache) in pt_iscache_lock()
118 if (!iscache) in pt_iscache_unlock()
144 if (!iscache) in pt_iscache_expand()
274 if (!iscache) in pt_isache_lru_new()
707 if (iscache->capacity <= iscache->size) { in pt_iscache_add()
709 if (iscache->capacity < iscache->size) { in pt_iscache_add()
719 if (iscache->capacity <= iscache->size) { in pt_iscache_add()
[all …]
H A Dpt_section.c274 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()
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()
510 iscache = section->iscache; in pt_section_alloc_bcache()
511 if (iscache) { in pt_section_alloc_bcache()
542 iscache = section->iscache; in pt_section_on_map_lock()
[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.c267 if (!section || !iscache) in pt_section_attach()
280 section->iscache = iscache; in pt_section_attach()
295 if (section->iscache != iscache) in pt_section_attach()
312 if (!section || !iscache) in pt_section_detach()
319 if (section->iscache != iscache) in pt_section_detach()
333 section->iscache = NULL; in pt_section_detach()
359 iscache = section->iscache; in pt_section_map()
360 if (iscache) in pt_section_map()
442 iscache = section->iscache; in pt_section_request_bcache()
443 if (iscache) { in pt_section_request_bcache()
[all …]
H A Dptunit-section.c54 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()
72 if (!iscache) in pt_iscache_notify_resize()
75 if (iscache->map <= 0) in pt_iscache_notify_resize()
76 return iscache->map; in pt_iscache_notify_resize()
79 iscache->map = 0; in pt_iscache_notify_resize()
650 iscache.map = 0; in attach_map()
687 iscache.map = -pte_eos; in attach_bad_map()
[all …]
H A Dptunit-image.c118 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()
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()
274 *laddr = iscache->laddr[isid]; in pt_iscache_lookup()
1796 struct pt_image_section_cache iscache; in add_cached_null() local
[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.in1704 * The \@iscache must not be used after a successful return.
1715 * Returns -pte_invalid if \@iscache is NULL.
1725 pt_iscache_name(const struct pt_image_section_cache *iscache);
1734 * in \@iscache.
1740 * Returns -pte_invalid if \@iscache or \@filename is NULL.
1750 * section identified by \@isid in \@iscache into \@buffer.
1760 * Returns -pte_invalid if \@iscache or \@buffer is NULL.
1763 * Returns -pte_bad_image if \@iscache does not contain \@isid.
1827 * Returns -pte_invalid if \@image or \@iscache is NULL.
1828 * Returns -pte_bad_image if \@iscache does not contain \@isid.
[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()