/freebsd-src/contrib/processor-trace/libipt/src/ |
H A D | pt_packet_decoder.c | 215 static inline int pkt_to_user(struct pt_packet *upkt, size_t size, in pkt_to_user() argument 225 if (sizeof(*pkt) < size) { in pkt_to_user() 226 memset(upkt + sizeof(*pkt), 0, size - sizeof(*pkt)); in pkt_to_user() 228 size = sizeof(*pkt); in pkt_to_user() 231 memcpy(upkt, pkt, size); in pkt_to_user() 241 int errcode, size; in pt_pkt_next() local 258 size = dfun->packet(decoder, ppkt); in pt_pkt_next() 259 if (size < 0) in pt_pkt_next() 260 return size; in pt_pkt_next() 266 decoder->pos += size; in pt_pkt_next() [all …]
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/asan_abi/ |
H A D | asan_abi_shim.cpp | 45 void *__asan_memcpy(void *dst, const void *src, uptr size) { in __asan_memcpy() argument 46 return __asan_abi_memcpy(dst, src, size); in __asan_memcpy() 87 void __asan_report_load_n(uptr addr, uptr size) { in __asan_report_load_n() argument 88 __asan_abi_report_load_n((void *)addr, size, true); in __asan_report_load_n() 105 void __asan_report_store_n(uptr addr, uptr size) { in __asan_report_store_n() argument 106 __asan_abi_report_store_n((void *)addr, size, true); in __asan_report_store_n() 125 void __asan_report_exp_load_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_load_n() argument 126 __asan_abi_report_exp_load_n((void *)addr, size, exp, true); in __asan_report_exp_load_n() 143 void __asan_report_exp_store_n(uptr addr, uptr size, u32 exp) { in __asan_report_exp_store_n() argument 144 __asan_abi_report_exp_store_n((void *)addr, size, ex in __asan_report_exp_store_n() 163 __asan_report_load_n_noabort(uptr addr,uptr size) __asan_report_load_n_noabort() argument 181 __asan_report_store_n_noabort(uptr addr,uptr size) __asan_report_store_n_noabort() argument 191 __asan_loadN(uptr addr,uptr size) __asan_loadN() argument 199 __asan_storeN(uptr addr,uptr size) __asan_storeN() argument 219 __asan_exp_loadN(uptr addr,uptr size,u32 exp) __asan_exp_loadN() argument 237 __asan_exp_storeN(uptr addr,uptr size,u32 exp) __asan_exp_storeN() argument 257 __asan_loadN_noabort(uptr addr,uptr size) __asan_loadN_noabort() argument 275 __asan_storeN_noabort(uptr addr,uptr size) __asan_storeN_noabort() argument 283 __asan_region_is_poisoned(uptr beg,uptr size) __asan_region_is_poisoned() argument 288 __asan_poison_memory_region(void const volatile * addr,uptr size) __asan_poison_memory_region() argument 291 __asan_unpoison_memory_region(void const volatile * addr,uptr size) __asan_unpoison_memory_region() argument 296 __asan_set_shadow_00(uptr addr,uptr size) __asan_set_shadow_00() argument 299 __asan_set_shadow_01(uptr addr,uptr size) __asan_set_shadow_01() argument 302 __asan_set_shadow_02(uptr addr,uptr size) __asan_set_shadow_02() argument 305 __asan_set_shadow_03(uptr addr,uptr size) __asan_set_shadow_03() argument 308 __asan_set_shadow_04(uptr addr,uptr size) __asan_set_shadow_04() argument 311 __asan_set_shadow_05(uptr addr,uptr size) __asan_set_shadow_05() argument 314 __asan_set_shadow_06(uptr addr,uptr size) __asan_set_shadow_06() argument 317 __asan_set_shadow_07(uptr addr,uptr size) __asan_set_shadow_07() argument 320 __asan_set_shadow_f1(uptr addr,uptr size) __asan_set_shadow_f1() argument 323 __asan_set_shadow_f2(uptr addr,uptr size) __asan_set_shadow_f2() argument 326 __asan_set_shadow_f3(uptr addr,uptr size) __asan_set_shadow_f3() argument 329 __asan_set_shadow_f5(uptr addr,uptr size) __asan_set_shadow_f5() argument 332 __asan_set_shadow_f8(uptr addr,uptr size) __asan_set_shadow_f8() argument 337 __asan_poison_stack_memory(uptr addr,uptr size) __asan_poison_stack_memory() argument 340 __asan_unpoison_stack_memory(uptr addr,uptr size) __asan_unpoison_stack_memory() argument 345 __asan_poison_intra_object_redzone(uptr p,uptr size) __asan_poison_intra_object_redzone() argument 348 __asan_unpoison_intra_object_redzone(uptr p,uptr size) __asan_unpoison_intra_object_redzone() argument 370 __asan_alloca_poison(uptr addr,uptr size) __asan_alloca_poison() argument 378 __asan_stack_malloc_0(uptr size) __asan_stack_malloc_0() argument 381 __asan_stack_malloc_1(uptr size) __asan_stack_malloc_1() argument 384 __asan_stack_malloc_2(uptr size) __asan_stack_malloc_2() argument 387 __asan_stack_malloc_3(uptr size) __asan_stack_malloc_3() argument 390 __asan_stack_malloc_4(uptr size) __asan_stack_malloc_4() argument 393 __asan_stack_malloc_5(uptr size) __asan_stack_malloc_5() argument 396 __asan_stack_malloc_6(uptr size) __asan_stack_malloc_6() argument 399 __asan_stack_malloc_7(uptr size) __asan_stack_malloc_7() argument 402 __asan_stack_malloc_8(uptr size) __asan_stack_malloc_8() argument 405 __asan_stack_malloc_9(uptr size) __asan_stack_malloc_9() argument 408 __asan_stack_malloc_10(uptr size) __asan_stack_malloc_10() argument 413 __asan_stack_malloc_always_0(uptr size) __asan_stack_malloc_always_0() argument 416 __asan_stack_malloc_always_1(uptr size) __asan_stack_malloc_always_1() argument 419 __asan_stack_malloc_always_2(uptr size) __asan_stack_malloc_always_2() argument 422 __asan_stack_malloc_always_3(uptr size) __asan_stack_malloc_always_3() argument 425 __asan_stack_malloc_always_4(uptr size) __asan_stack_malloc_always_4() argument 428 __asan_stack_malloc_always_5(uptr size) __asan_stack_malloc_always_5() argument 431 __asan_stack_malloc_always_6(uptr size) __asan_stack_malloc_always_6() argument 434 __asan_stack_malloc_always_7(uptr size) __asan_stack_malloc_always_7() argument 437 __asan_stack_malloc_always_8(uptr size) __asan_stack_malloc_always_8() argument 440 __asan_stack_malloc_always_9(uptr size) __asan_stack_malloc_always_9() argument 443 __asan_stack_malloc_always_10(uptr size) __asan_stack_malloc_always_10() argument 448 __asan_stack_free_0(uptr ptr,uptr size) __asan_stack_free_0() argument 451 __asan_stack_free_1(uptr ptr,uptr size) __asan_stack_free_1() argument 454 __asan_stack_free_2(uptr ptr,uptr size) __asan_stack_free_2() argument 457 __asan_stack_free_3(uptr ptr,uptr size) __asan_stack_free_3() argument 460 __asan_stack_free_4(uptr ptr,uptr size) __asan_stack_free_4() argument 463 __asan_stack_free_5(uptr ptr,uptr size) __asan_stack_free_5() argument 466 __asan_stack_free_6(uptr ptr,uptr size) __asan_stack_free_6() argument 469 __asan_stack_free_7(uptr ptr,uptr size) __asan_stack_free_7() argument 472 __asan_stack_free_8(uptr ptr,uptr size) __asan_stack_free_8() argument 475 __asan_stack_free_9(uptr ptr,uptr size) __asan_stack_free_9() argument 478 __asan_stack_free_10(uptr ptr,uptr size) __asan_stack_free_10() argument [all...] |
/freebsd-src/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerMutate.cpp | 24 PrintASCII(W.data(), W.size(), PrintAfter); in PrintASCII() 70 size_t MutationDispatcher::Mutate_Custom(uint8_t *Data, size_t Size, in Mutate_Custom() argument 73 EF->__msan_unpoison(Data, Size); in Mutate_Custom() 76 return EF->LLVMFuzzerCustomMutator(Data, Size, MaxSize, in Mutate_Custom() 80 size_t MutationDispatcher::Mutate_CustomCrossOver(uint8_t *Data, size_t Size, in Mutate_CustomCrossOver() argument 82 if (Size == 0) in Mutate_CustomCrossOver() 92 EF->__msan_unpoison(Data, Size); in Mutate_CustomCrossOver() 93 EF->__msan_unpoison(Other.data(), Other.size()); in Mutate_CustomCrossOver() 94 EF->__msan_unpoison(U.data(), U.size()); in Mutate_CustomCrossOver() 99 Data, Size, Other.data(), Other.size(), U.data(), U.size(), in Mutate_CustomCrossOver() [all …]
|
/freebsd-src/sys/contrib/device-tree/src/arm/aspeed/ |
H A D | aspeed-bmc-facebook-cmm.dts | 334 #size-cells = <0>; 341 #size-cells = <0>; 347 #size-cells = <0>; 353 #size-cells = <0>; 358 #size-cells = <0>; 363 #size-cells = <0>; 368 #size-cells = <0>; 373 #size-cells = <0>; 378 #size-cells = <0>; 383 #size-cells = <0>; [all …]
|
H A D | aspeed-bmc-facebook-fuji.dts | 219 data-size = <16>; 239 #size-cells = <0>; 245 #size-cells = <0>; 252 #size-cells = <0>; 259 #size-cells = <0>; 265 #size-cells = <0>; 271 #size-cells = <0>; 277 #size-cells = <0>; 283 #size-cells = <0>; 289 #size-cells = <0>; [all …]
|
H A D | aspeed-bmc-facebook-minipack.dts | 249 #size-cells = <1>; 299 #size-cells = <1>; 350 #size-cells = <0>; 356 #size-cells = <0>; 362 #size-cells = <0>; 368 #size-cells = <0>; 374 #size-cells = <0>; 380 #size-cells = <0>; 386 #size-cells = <0>; 392 #size-cells = <0>; [all …]
|
H A D | ibm-power10-quad.dtsi | 11 #size-cells = <0>; 16 #size-cells = <1>; 28 #size-cells = <0>; 39 #size-cells = <0>; 44 #size-cells = <1>; 56 #size-cells = <0>; 67 #size-cells = <0>; 72 #size-cells = <1>; 84 #size-cells = <0>; 95 #size-cells = <0>; [all …]
|
/freebsd-src/sys/contrib/device-tree/src/riscv/sophgo/ |
H A D | sg2042-cpus.dtsi | 9 #size-cells = <0>; 265 i-cache-block-size = <64>; 266 i-cache-size = <65536>; 268 d-cache-block-size = <64>; 269 d-cache-size = <65536>; 290 i-cache-block-size = <64>; 291 i-cache-size = <65536>; 293 d-cache-block-size = <64>; 294 d-cache-size = <65536>; 315 i-cache-block-size = <64>; [all …]
|
/freebsd-src/sys/contrib/ncsw/etc/ |
H A D | memcpy.c | 39 void * MemCpy8(void* pDst, void* pSrc, uint32_t size) in MemCpy8() argument 43 for(i = 0; i < size; ++i) in MemCpy8() 49 void * MemSet8(void* pDst, int c, uint32_t size) in MemSet8() argument 53 for(i = 0; i < size; ++i) in MemSet8() 59 void * MemCpy32(void* pDst,void* pSrc, uint32_t size) in MemCpy32() argument 76 while((PTR_TO_UINT(p_Src8) & 3) && size) /* (pSrc mod 4) > 0 and size > 0 */ in MemCpy32() 79 size--; in MemCpy32() 83 while((PTR_TO_UINT(p_Dst8) & 3) && size) /* (pDst mod 4) > 0 and size > 0 */ in MemCpy32() 86 size--; in MemCpy32() 99 while (size >> 2) /* size >= 4 */ in MemCpy32() [all …]
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_interceptors_memintrinsics.inc | 44 #define COMMON_INTERCEPTOR_MEMSET_IMPL(ctx, dst, v, size) \ 47 return internal_memset(dst, v, size); \ 48 COMMON_INTERCEPTOR_ENTER(ctx, memset, dst, v, size); \ 50 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \ 51 return REAL(memset)(dst, v, size); \ 56 #define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, dst, src, size) \ 59 return internal_memmove(dst, src, size); \ 60 COMMON_INTERCEPTOR_ENTER(ctx, memmove, dst, src, size); \ 62 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, dst, size); \ 63 COMMON_INTERCEPTOR_READ_RANGE(ctx, src, size); \ [all …]
|
/freebsd-src/sys/contrib/device-tree/src/arm64/amazon/ |
H A D | alpine-v3.dtsi | 17 #size-cells = <2>; 21 #size-cells = <0>; 28 d-cache-size = <0x8000>; 29 d-cache-line-size = <64>; 31 i-cache-size = <0xc000>; 32 i-cache-line-size = <64>; 42 d-cache-size = <0x8000>; 43 d-cache-line-size = <64>; 45 i-cache-size = <0xc000>; 46 i-cache-line-size [all...] |
/freebsd-src/contrib/jemalloc/include/jemalloc/internal/ |
H A D | sc.h | 7 * Size class computations: 12 * Ignore the first few size classes for a moment. We can then split all the 13 * remaining size classes into groups. The size classes in a group are spaced 15 * power of two is called the base of the group, and the size classes in it 17 * SC_NGROUP size classes in each group, equally spaced in the range, so that 19 * We call that value (base / SC_NGROUP) the delta of the group. Each size class 20 * is delta larger than the one before it (including the initial size class in a 21 * group, which is delta larger than base, the largest size class in the 27 * The size classes in a group with a given lg_base and lg_delta (which, recall, 40 * Note that the last size class in the group is the next power of two (after [all …]
|
H A D | sz.h | 10 * sz module: Size computations. 15 * s, sz: Size 16 * u: Usable size 20 * interpret function names. E.g. sz_psz2ind converts page size to page size 21 * index; sz_sa2u converts a (size, alignment) allocation request to the usable 22 * size that would result from such an allocation. 37 * size classes. In order to reduce cache footprint, the table is compressed, 121 sz_size2index_compute(size_t size) { in sz_size2index_compute() argument 122 if (unlikely(size > SC_LARGE_MAXCLASS)) { in sz_size2index_compute() 126 if (size == 0) { in sz_size2index_compute() [all …]
|
/freebsd-src/sys/dev/ice/ |
H A D | ice_bitops.h | 38 /* Define the size of the bitmap chunk */ 118 * is less than the size of the bitmap. 131 * Clears the bit nr in bitmap. Assumes that nr is less than the size of the 144 * Sets the bit nr in bitmap. Assumes that nr is less than the size of the 157 * Check and clear the bit nr in bitmap. Assumes that nr is less than the size 172 * Check and set the bit nr in bitmap. Assumes that nr is less than the size of 184 * @size: Size of the bitmaps in bits 189 * size. 191 static inline void ice_zero_bitmap(ice_bitmap_t *bmp, u16 size) in ice_zero_bitmap() argument 212 ice_and_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_and_bitmap() argument 249 ice_or_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_or_bitmap() argument 280 ice_xor_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_xor_bitmap() argument 311 ice_andnot_bitmap(ice_bitmap_t * dst,const ice_bitmap_t * bmp1,const ice_bitmap_t * bmp2,u16 size) ice_andnot_bitmap() argument 339 ice_find_next_bit(const ice_bitmap_t * bitmap,u16 size,u16 offset) ice_find_next_bit() argument 381 ice_find_first_bit(const ice_bitmap_t * bitmap,u16 size) ice_find_first_bit() argument 399 ice_is_any_bit_set(ice_bitmap_t * bitmap,u16 size) ice_is_any_bit_set() argument 414 ice_cp_bitmap(ice_bitmap_t * dst,ice_bitmap_t * src,u16 size) ice_cp_bitmap() argument 449 ice_bitmap_hweight(ice_bitmap_t * bm,u16 size) ice_bitmap_hweight() argument 471 ice_cmp_bitmap(ice_bitmap_t * bmp1,ice_bitmap_t * bmp2,u16 size) ice_cmp_bitmap() argument 499 ice_bitmap_from_array32(ice_bitmap_t * dst,u32 * src,u16 size) ice_bitmap_from_array32() argument [all...] |
/freebsd-src/sys/compat/linuxkpi/common/include/linux/ |
H A D | slab.h | 44 #define kmalloc(size, flags) lkpi_kmalloc(size, flags) argument 45 #define kvmalloc(size, flags) kmalloc(size, flags) argument 46 #define kvzalloc(size, flags) kmalloc(size, (flags) | __GFP_ZERO) argument 47 #define kvcalloc(n, size, flags) kvmalloc_array(n, size, (flags) | __GFP_ZERO) argument 48 #define kzalloc(size, flags) kmalloc(size, (flag argument 49 kzalloc_node(size,flags,node) global() argument 51 vzalloc(size) global() argument 54 vmalloc_node(size,node) global() argument 55 vmalloc_user(size) global() argument 56 vmalloc(size) global() argument 110 __kmalloc(size_t size,gfp_t flags) __kmalloc() argument 117 kmalloc_node(size_t size,gfp_t flags,int node) kmalloc_node() argument 124 kcalloc(size_t n,size_t size,gfp_t flags) kcalloc() argument 131 kcalloc_node(size_t n,size_t size,gfp_t flags,int node) kcalloc_node() argument 139 __vmalloc(size_t size,gfp_t flags,int other) __vmalloc() argument 145 __vmalloc_node(size_t size,gfp_t flags,int node) __vmalloc_node() argument 152 vmalloc_32(size_t size) vmalloc_32() argument 158 kmalloc_array(size_t n,size_t size,gfp_t flags) kmalloc_array() argument 164 kmalloc_array_node(size_t n,size_t size,gfp_t flags,int node) kmalloc_array_node() argument 171 kvmalloc_array(size_t n,size_t size,gfp_t flags) kvmalloc_array() argument 177 krealloc(void * ptr,size_t size,gfp_t flags) krealloc() argument 183 krealloc_array(void * ptr,size_t n,size_t size,gfp_t flags) krealloc_array() argument [all...] |
H A D | bitmap.h | 34 bitmap_zero(unsigned long *addr, const unsigned int size) in bitmap_zero() argument 36 memset(addr, 0, BITS_TO_LONGS(size) * sizeof(long)); in bitmap_zero() 40 bitmap_fill(unsigned long *addr, const unsigned int size) in bitmap_fill() argument 42 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_fill() 44 memset(addr, 0xff, BIT_WORD(size) * sizeof(long)); in bitmap_fill() 47 addr[BIT_WORD(size)] = BITMAP_LAST_WORD_MASK(tail); in bitmap_fill() 51 bitmap_full(unsigned long *addr, const unsigned int size) in bitmap_full() argument 53 const unsigned int end = BIT_WORD(size); in bitmap_full() 54 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_full() 72 bitmap_empty(unsigned long *addr, const unsigned int size) in bitmap_empty() argument [all …]
|
/freebsd-src/sys/contrib/device-tree/src/arm/broadcom/ |
H A D | bcm2837.dtsi | 39 #size-cells = <0>; 42 /* Source for d/i-cache-line-size and d/i-cache-sets 46 * Source for d/i-cache-size 55 d-cache-size = <0x8000>; 56 d-cache-line-size = <64>; 57 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 58 i-cache-size = <0x8000>; 59 i-cache-line-size = <64>; 60 i-cache-sets = <256>; // 32KiB(size)/6 [all...] |
H A D | bcm2836.dtsi | 40 #size-cells = <0>; 43 /* Source for d/i-cache-line-size and d/i-cache-sets 47 * Source for d/i-cache-size 56 d-cache-size = <0x8000>; 57 d-cache-line-size = <64>; 58 d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set 59 i-cache-size = <0x8000>; 60 i-cache-line-size = <32>; 61 i-cache-sets = <512>; // 32KiB(size)/32(line-size)=1024ways/2-way set 70 d-cache-size = <0x8000>; [all …]
|
/freebsd-src/sys/contrib/device-tree/src/arm64/amd/ |
H A D | amd-seattle-cpus.dtsi | 6 #size-cells = <0x0>; 49 i-cache-size = <0xC000>; 50 i-cache-line-size = <64>; 52 d-cache-size = <0x8000>; 53 d-cache-line-size = <64>; 65 i-cache-size = <0xC000>; 66 i-cache-line-size = <64>; 68 d-cache-size = <0x8000>; 69 d-cache-line-size = <64>; 80 i-cache-size = <0xC000>; [all …]
|
/freebsd-src/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_lfsr.c | 83 key.size = (len & 0xff) + 1; in main() 85 memset(kb, c, key.size); in main() 86 val.size = (next(&len) & 0xff) + 1; in main() 90 key.size, val.size, c); in main() 94 key.size, val.size, c); in main() 97 key.size, val.size, c); in main() 105 key.size = (len & 0xff) + 1; in main() 107 memset(kb, c, key.size); in main() 112 key.size, val.size, c); in main() 116 key.size, val.size, c); in main() [all …]
|
/freebsd-src/contrib/jemalloc/src/ |
H A D | pages.c | 23 /* Actual operating system page size, detected during bootstrap, <= PAGE. */ 51 static void os_pages_unmap(void *addr, size_t size); 56 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) { in os_pages_map() argument 58 assert(ALIGNMENT_CEILING(size, os_page) == size); in os_pages_map() 59 assert(size != 0); in os_pages_map() 71 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0), in os_pages_map() 81 ret = mmap(addr, size, prot, mmap_flags, -1, 0); in os_pages_map() 91 os_pages_unmap(ret, size); in os_pages_map() 101 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument 130 os_pages_unmap(void * addr,size_t size) os_pages_unmap() argument 157 pages_map_slow(size_t size,size_t alignment,bool * commit) pages_map_slow() argument 181 pages_map(void * addr,size_t size,size_t alignment,bool * commit) pages_map() argument 243 pages_unmap(void * addr,size_t size) pages_unmap() argument 251 pages_commit_impl(void * addr,size_t size,bool commit) pages_commit_impl() argument 284 pages_commit(void * addr,size_t size) pages_commit() argument 289 pages_decommit(void * addr,size_t size) pages_decommit() argument 294 pages_purge_lazy(void * addr,size_t size) pages_purge_lazy() argument 329 pages_purge_forced(void * addr,size_t size) pages_purge_forced() argument 349 pages_huge_impl(void * addr,size_t size,bool aligned) pages_huge_impl() argument 362 pages_huge(void * addr,size_t size) pages_huge() argument 367 pages_huge_unaligned(void * addr,size_t size) pages_huge_unaligned() argument 372 pages_nohuge_impl(void * addr,size_t size,bool aligned) pages_nohuge_impl() argument 386 pages_nohuge(void * addr,size_t size) pages_nohuge() argument 391 pages_nohuge_unaligned(void * addr,size_t size) pages_nohuge_unaligned() argument 396 pages_dontdump(void * addr,size_t size) pages_dontdump() argument 407 pages_dodump(void * addr,size_t size) pages_dodump() argument 544 pages_set_thp_state(void * ptr,size_t size) pages_set_thp_state() argument [all...] |
/freebsd-src/sys/kern/ |
H A D | kern_malloc.c | 38 * allocator. A set of fixed-size buckets are used for smaller allocations, 130 * When realloc() is called, if the new size is sufficiently smaller than 131 * the old size, realloc() will allocate a new, smaller block to avoid 136 #define REALLOC_FRACTION 1 /* new block if <= half the size */ 196 "Size of kernel memory"); 200 "Maximum allocation size that malloc(9) would use UMA as backend"); 204 "Minimum size of kernel memory"); 208 "Maximum size of kernel memory"); 212 "Scale factor for kernel memory size"); 217 sysctl_kmem_map_size, "LU", "Current kmem allocation size"); 256 u_long size; sysctl_kmem_map_size() local 265 u_long size, limit; sysctl_kmem_map_free() local 378 malloc_type_zone_allocated(struct malloc_type * mtp,unsigned long size,int zindx) malloc_type_zone_allocated() argument 408 malloc_type_allocated(struct malloc_type * mtp,unsigned long size) malloc_type_allocated() argument 422 malloc_type_freed(struct malloc_type * mtp,unsigned long size) malloc_type_freed() argument 455 contigmalloc(unsigned long size,struct malloc_type * type,int flags,vm_paddr_t low,vm_paddr_t high,unsigned long alignment,vm_paddr_t boundary) contigmalloc() argument 469 contigmalloc_domainset(unsigned long size,struct malloc_type * type,struct domainset * ds,int flags,vm_paddr_t low,vm_paddr_t high,unsigned long alignment,vm_paddr_t boundary) contigmalloc_domainset() argument 490 contigfree(void * addr,unsigned long size,struct malloc_type * type) contigfree() argument 584 malloc_large(size_t size,struct malloc_type * mtp,struct domainset * policy,int flags DEBUG_REDZONE_ARG_DEF) malloc_large() argument 610 free_large(void * addr,size_t size) free_large() argument 681 size_t size; malloc_domain() local 699 malloc_domainset(size_t size,struct malloc_type * mtp,struct domainset * ds,int flags) malloc_domainset() argument 752 malloc_exec(size_t size,struct malloc_type * mtp,int flags) malloc_exec() argument 759 malloc_domainset_exec(size_t size,struct malloc_type * mtp,struct domainset * ds,int flags) malloc_domainset_exec() argument 781 malloc_aligned(size_t size,size_t align,struct malloc_type * type,int flags) malloc_aligned() argument 788 malloc_domainset_aligned(size_t size,size_t align,struct malloc_type * mtp,struct domainset * ds,int flags) malloc_domainset_aligned() argument 821 mallocarray(size_t nmemb,size_t size,struct malloc_type * type,int flags) mallocarray() argument 831 mallocarray_domainset(size_t nmemb,size_t size,struct malloc_type * type,struct domainset * ds,int flags) mallocarray_domainset() argument 843 free_save_type(void * addr,struct malloc_type * mtp,u_long size) free_save_type() argument 905 u_long size; free() local 945 u_long size; zfree() local 981 realloc(void * addr,size_t size,struct malloc_type * mtp,int flags) realloc() argument 1050 reallocf(void * addr,size_t size,struct malloc_type * mtp,int flags) reallocf() argument 1064 malloc_size(size_t size) malloc_size() argument 1086 u_long size; malloc_usable_size() local 1239 int size = kmemzones[indx].kz_size; mallocinit() local 1485 int64_t size; DB_SHOW_COMMAND_FLAGS() local [all...] |
/freebsd-src/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_allocator.cpp | 32 void OnMap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnMap() 33 void OnMapSecondary(uptr p, uptr size, uptr user_begin, in OnMapSecondary() 35 OnMap(p, size); in OnMapSecondary() 37 void OnUnmap(uptr p, uptr size) const { dfsan_set_label(0, (void *)p, size); } in OnUnmap() 91 static void *DFsanAllocate(uptr size, uptr alignment, bool zeroise) { in DFsanAllocate() 92 if (size > max_malloc_size) { in DFsanAllocate() 95 size); in DFsanAllocate() 99 ReportAllocationSizeTooBig(size, max_malloc_siz in DFsanAllocate() 88 DFsanAllocate(uptr size,uptr alignment,bool zeroise) DFsanAllocate() argument 136 uptr size = meta->requested_size; dfsan_deallocate() local 171 DFsanCalloc(uptr nmemb,uptr size) DFsanCalloc() argument 209 dfsan_malloc(uptr size) dfsan_malloc() argument 213 dfsan_calloc(uptr nmemb,uptr size) dfsan_calloc() argument 217 dfsan_realloc(void * ptr,uptr size) dfsan_realloc() argument 227 dfsan_reallocarray(void * ptr,uptr nmemb,uptr size) dfsan_reallocarray() argument 238 dfsan_valloc(uptr size) dfsan_valloc() argument 243 dfsan_pvalloc(uptr size) dfsan_pvalloc() argument 257 dfsan_aligned_alloc(uptr alignment,uptr size) dfsan_aligned_alloc() argument 268 dfsan_memalign(uptr alignment,uptr size) dfsan_memalign() argument 279 dfsan_posix_memalign(void ** memptr,uptr alignment,uptr size) dfsan_posix_memalign() argument 315 __sanitizer_get_estimated_allocated_size(uptr size) __sanitizer_get_estimated_allocated_size() argument [all...] |
/freebsd-src/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_allocation_functions.cpp | 26 static void OnAllocate(const void *ptr, uptr size) { in OnAllocate() 30 __lsan_register_root_region(ptr, size); in OnAllocate() 33 static void OnFree(const void *ptr, uptr size) { in OnFree() 35 __lsan_unregister_root_region(ptr, size); in OnFree() 43 int __sanitizer_posix_memalign(void **memptr, uptr alignment, uptr size) { in __sanitizer_posix_memalign() argument 46 int res = hwasan_posix_memalign(memptr, alignment, size, &stack); in __sanitizer_posix_memalign() 51 void *__sanitizer_memalign(uptr alignment, uptr size) { in __sanitizer_memalign() argument 53 return hwasan_memalign(alignment, size, &stack); in __sanitizer_memalign() 57 void *__sanitizer_aligned_alloc(uptr alignment, uptr size) { in __sanitizer_aligned_alloc() argument 59 return hwasan_aligned_alloc(alignment, size, in __sanitizer_aligned_alloc() 63 __sanitizer___libc_memalign(uptr alignment,uptr size) __sanitizer___libc_memalign() argument 72 __sanitizer_valloc(uptr size) __sanitizer_valloc() argument 78 __sanitizer_pvalloc(uptr size) __sanitizer_pvalloc() argument 124 __sanitizer_calloc(uptr nmemb,uptr size) __sanitizer_calloc() argument 132 __sanitizer_realloc(void * ptr,uptr size) __sanitizer_realloc() argument 140 __sanitizer_reallocarray(void * ptr,uptr nmemb,uptr size) __sanitizer_reallocarray() argument 146 __sanitizer_malloc(uptr size) __sanitizer_malloc() argument [all...] |
/freebsd-src/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors_memintrinsics.cpp | 26 #define MEMPROF_MEMCPY_IMPL(to, from, size) \ argument 29 return internal_memcpy(to, from, size); \ 31 return REAL(memcpy)(to, from, size); \ 34 MEMPROF_READ_RANGE(from, size); \ 35 MEMPROF_WRITE_RANGE(to, size); \ 36 return REAL(memcpy)(to, from, size); \ 40 #define MEMPROF_MEMSET_IMPL(block, c, size) \ argument 43 return internal_memset(block, c, size); \ 45 return REAL(memset)(block, c, size); \ 48 MEMPROF_WRITE_RANGE(block, size); \ [all …]
|