/freebsd-13-stable/contrib/processor-trace/libipt/src/ |
H A D | pt_block_cache.c | 37 struct pt_block_cache *bcache; local 43 size = sizeof(*bcache) + (nentries * sizeof(struct pt_bcache_entry)); 47 bcache = malloc((size_t) size); 48 if (!bcache) 51 memset(bcache, 0, (size_t) size); 52 bcache->nentries = (uint32_t) nentries; 54 return bcache; 57 void pt_bcache_free(struct pt_block_cache *bcache) argument 59 free(bcache); 62 int pt_bcache_add(struct pt_block_cache *bcache, uint64_ argument 80 pt_bcache_lookup(struct pt_bcache_entry *bce, const struct pt_block_cache *bcache, uint64_t index) argument [all...] |
H A D | pt_section.c | 369 struct pt_block_cache *bcache; local 374 bcache = section->bcache; 375 if (!bcache) { 380 *psize = sizeof(*bcache) + 381 (bcache->nentries * sizeof(struct pt_bcache_entry)); 446 struct pt_block_cache *bcache; local 481 bcache = pt_section_bcache(section); 482 if (bcache) { 487 bcache [all...] |
H A D | pt_block_decoder.c | 1706 static inline int pt_blk_add_trampoline(struct pt_block_cache *bcache, argument 1733 return pt_bcache_add(bcache, ip, bce); 1742 static inline int pt_blk_add_decode(struct pt_block_cache *bcache, argument 1752 return pt_bcache_add(bcache, ioff, bce); 1777 struct pt_block_cache *bcache, 1867 status = pt_bcache_add(bcache, ioff, bce); 1935 return pt_blk_add_decode(bcache, ioff, insn.mode); 1946 return pt_blk_add_decode(bcache, ioff, insn.mode); 1951 return pt_blk_add_decode(bcache, ioff, insn.mode); 1959 status = pt_bcache_lookup(&bce, bcache, nof 1775 pt_blk_proceed_no_event_fill_cache(struct pt_block_decoder *decoder, struct pt_block *block, struct pt_block_cache *bcache, const struct pt_mapped_section *msec, size_t steps) argument 2128 pt_blk_proceed_no_event_cached(struct pt_block_decoder *decoder, struct pt_block *block, struct pt_block_cache *bcache, const struct pt_mapped_section *msec) argument 2533 struct pt_block_cache *bcache; local [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-block_cache.c | 44 struct pt_block_cache *bcache; member in struct:bcache_fixture 70 bfix->bcache = NULL; 79 bfix->bcache = pt_bcache_alloc(bfix_nentries); 80 ptu_ptr(bfix->bcache); 94 pt_bcache_free(bfix->bcache); 137 struct pt_block_cache bcache; local 143 errcode = pt_bcache_lookup(NULL, &bcache, 0ull); 151 bfix->bcache = pt_bcache_alloc(0x10000ull); 152 ptu_ptr(bfix->bcache); 159 bfix->bcache 257 struct pt_block_cache *bcache; local [all...] |
H A D | ptunit-section.c | 93 struct pt_block_cache *bcache; local 103 bcache = malloc(sizeof(*bcache)); 104 if (bcache) 105 bcache->nentries = (uint32_t) nentries; 107 return bcache; 110 void pt_bcache_free(struct pt_block_cache *bcache) argument 112 free(bcache); 356 struct pt_block_cache *bcache; local 358 bcache 1069 struct pt_block_cache *bcache; local 1130 struct pt_block_cache *bcache; local 1154 struct pt_block_cache *bcache; local [all...] |
/freebsd-13-stable/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_block_cache.h | 199 extern void pt_bcache_free(struct pt_block_cache *bcache); 206 * Returns -pte_internal if @bcache is NULL. 207 * Returns -pte_internal if @index is outside of @bcache. 209 extern int pt_bcache_add(struct pt_block_cache *bcache, uint64_t index, 218 * Returns -pte_internal if @bcache or @bce is NULL. 219 * Returns -pte_internal if @index is outside of @bcache. 222 const struct pt_block_cache *bcache,
|
H A D | pt_section.h | 85 struct pt_block_cache *bcache; member in struct:pt_section 282 if (section->bcache) 301 return section->bcache;
|
/freebsd-13-stable/stand/common/ |
H A D | bcache.c | 59 * bcache per device node. cache is allocated on device first open and freed 64 struct bcache { struct 90 static void bcache_invalidate(struct bcache *bc, daddr_t blkno); 91 static void bcache_insert(struct bcache *bc, daddr_t blkno); 92 static void bcache_free_instance(struct bcache *bc); 106 * add number of devices to bcache. we have to divide cache space 123 struct bcache *bc = malloc(sizeof (struct bcache)); 135 * the bcache block count must be power of 2 for hash function 172 struct bcache *b [all...] |
/freebsd-13-stable/stand/userboot/userboot/ |
H A D | Makefile | 17 SRCS+= bcache.c
|
/freebsd-13-stable/stand/ |
H A D | loader.mk | 58 SRCS+= bcache.c
|