/freebsd-9.3-release/lib/libmemstat/ |
H A D | memstat.c | 88 memstat_mtl_next(struct memory_type *mtp) argument 91 return (LIST_NEXT(mtp, mt_list)); 97 struct memory_type *mtp; local 99 while ((mtp = LIST_FIRST(&list->mtl_list))) { 100 free(mtp->mt_percpu_alloc); 101 free(mtp->mt_percpu_cache); 102 LIST_REMOVE(mtp, mt_list); 103 free(mtp); 131 struct memory_type *mtp; local 133 LIST_FOREACH(mtp, 152 struct memory_type *mtp; local 178 _memstat_mt_reset_stats(struct memory_type *mtp, int maxcpus) argument 215 memstat_get_name(const struct memory_type *mtp) argument 222 memstat_get_allocator(const struct memory_type *mtp) argument 229 memstat_get_countlimit(const struct memory_type *mtp) argument 236 memstat_get_byteslimit(const struct memory_type *mtp) argument 243 memstat_get_sizemask(const struct memory_type *mtp) argument 250 memstat_get_size(const struct memory_type *mtp) argument 257 memstat_get_memalloced(const struct memory_type *mtp) argument 264 memstat_get_memfreed(const struct memory_type *mtp) argument 271 memstat_get_numallocs(const struct memory_type *mtp) argument 278 memstat_get_numfrees(const struct memory_type *mtp) argument 285 memstat_get_bytes(const struct memory_type *mtp) argument 292 memstat_get_count(const struct memory_type *mtp) argument 299 memstat_get_free(const struct memory_type *mtp) argument 306 memstat_get_failures(const struct memory_type *mtp) argument 313 memstat_get_sleeps(const struct memory_type *mtp) argument 320 memstat_get_caller_pointer(const struct memory_type *mtp, int index) argument 327 memstat_set_caller_pointer(struct memory_type *mtp, int index, void *value) argument 334 memstat_get_caller_uint64(const struct memory_type *mtp, int index) argument 341 memstat_set_caller_uint64(struct memory_type *mtp, int index, uint64_t value) argument 348 memstat_get_zonefree(const struct memory_type *mtp) argument 355 memstat_get_kegfree(const struct memory_type *mtp) argument 362 memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) argument 369 memstat_get_percpu_memfreed(const struct memory_type *mtp, int cpu) argument 376 memstat_get_percpu_numallocs(const struct memory_type *mtp, int cpu) argument 383 memstat_get_percpu_numfrees(const struct memory_type *mtp, int cpu) argument 390 memstat_get_percpu_sizemask(const struct memory_type *mtp, int cpu) argument 397 memstat_get_percpu_caller_pointer(const struct memory_type *mtp, int cpu, int index) argument 405 memstat_set_percpu_caller_pointer(struct memory_type *mtp, int cpu, int index, void *value) argument 413 memstat_get_percpu_caller_uint64(const struct memory_type *mtp, int cpu, int index) argument 421 memstat_set_percpu_caller_uint64(struct memory_type *mtp, int cpu, int index, uint64_t value) argument 429 memstat_get_percpu_free(const struct memory_type *mtp, int cpu) argument [all...] |
H A D | memstat.h | 98 struct memory_type *memstat_mtl_next(struct memory_type *mtp); 121 const char *memstat_get_name(const struct memory_type *mtp); 122 int memstat_get_allocator(const struct memory_type *mtp); 123 uint64_t memstat_get_countlimit(const struct memory_type *mtp); 124 uint64_t memstat_get_byteslimit(const struct memory_type *mtp); 125 uint64_t memstat_get_sizemask(const struct memory_type *mtp); 126 uint64_t memstat_get_size(const struct memory_type *mtp); 127 uint64_t memstat_get_memalloced(const struct memory_type *mtp); 128 uint64_t memstat_get_memfreed(const struct memory_type *mtp); 129 uint64_t memstat_get_numallocs(const struct memory_type *mtp); [all...] |
H A D | memstat_uma.c | 80 struct memory_type *mtp; local 179 mtp = memstat_mtl_find(list, ALLOCATOR_UMA, 182 mtp = NULL; 183 if (mtp == NULL) 184 mtp = _memstat_mt_allocate(list, ALLOCATOR_UMA, 186 if (mtp == NULL) { 196 _memstat_mt_reset_stats(mtp, maxid + 1); 198 mtp->mt_numallocs = uthp->uth_allocs; 199 mtp->mt_numfrees = uthp->uth_frees; 200 mtp 299 struct memory_type *mtp; local [all...] |
H A D | memstat_malloc.c | 71 struct memory_type *mtp; local 170 mtp = memstat_mtl_find(list, ALLOCATOR_MALLOC, 173 mtp = NULL; 174 if (mtp == NULL) 175 mtp = _memstat_mt_allocate(list, ALLOCATOR_MALLOC, 177 if (mtp == NULL) { 187 _memstat_mt_reset_stats(mtp, maxcpus); 197 mtp->mt_memalloced += mtsp->mts_memalloced; 198 mtp->mt_memfreed += mtsp->mts_memfreed; 199 mtp 283 struct memory_type *mtp; local [all...] |
H A D | memstat_internal.h | 123 void _memstat_mt_reset_stats(struct memory_type *mtp,
|
/freebsd-9.3-release/usr.bin/netstat/ |
H A D | mbuf.c | 68 struct memory_type *mtp; local 117 mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, MBUF_MEM_NAME); 118 if (mtp == NULL) { 122 mbuf_count = memstat_get_count(mtp); 123 mbuf_bytes = memstat_get_bytes(mtp); 124 mbuf_free = memstat_get_free(mtp); 125 mbuf_failures = memstat_get_failures(mtp); 126 mbuf_sleeps = memstat_get_sleeps(mtp); 127 mbuf_size = memstat_get_size(mtp); 129 mtp [all...] |
/freebsd-9.3-release/sys/vm/ |
H A D | memguard.h | 49 #define memguard_realloc(a, s, mtp, f) NULL 51 #define memguard_cmp(mtp, size) 0
|
H A D | memguard.c | 90 * If mtp is NULL, it will be initialized in memguard_cmp(). 411 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp, argument 433 memguard_cmp(struct malloc_type *mtp, unsigned long size) argument 452 return (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0); 462 return (mtp == vm_memguard_mtype); 463 if (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0) { 464 vm_memguard_mtype = mtp;
|
/freebsd-9.3-release/sys/kern/ |
H A D | kern_malloc.c | 340 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, argument 347 mtip = mtp->ks_handle; 361 (uintptr_t) mtp, (uintptr_t) mtip, 370 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) argument 374 malloc_type_zone_allocated(mtp, size, -1); 384 malloc_type_freed(struct malloc_type *mtp, unsigned long size) argument 390 mtip = mtp->ks_handle; 400 (uintptr_t) mtp, (uintptr_t) mtip, 454 malloc(unsigned long size, struct malloc_type *mtp, int flags) argument 465 KASSERT(mtp 554 free(void *addr, struct malloc_type *mtp) argument 616 realloc(void *addr, unsigned long size, struct malloc_type *mtp, int flags) argument 675 reallocf(void *addr, unsigned long size, struct malloc_type *mtp, int flags) argument 796 struct malloc_type *mtp; local 820 struct malloc_type *mtp, *temp; local 872 struct malloc_type *mtp; local 888 struct malloc_type *mtp; local 944 struct malloc_type *mtp, **bufmtp; local 979 struct malloc_type *mtp; local 1010 struct malloc_type *mtp; local [all...] |
/freebsd-9.3-release/usr.bin/vmstat/ |
H A D | vmstat.c | 1201 struct memory_type *mtp; local 1228 for (mtp = memstat_mtl_first(mtlp); mtp != NULL; 1229 mtp = memstat_mtl_next(mtp)) { 1230 if (memstat_get_numallocs(mtp) == 0 && 1231 memstat_get_count(mtp) == 0) 1234 memstat_get_name(mtp), memstat_get_count(mtp), 1235 (memstat_get_bytes(mtp) 1255 struct memory_type *mtp; local [all...] |
/freebsd-9.3-release/sys/cddl/dev/dtmalloc/ |
H A D | dtmalloc.c | 111 dtmalloc_type_cb(struct malloc_type *mtp, void *arg __unused) argument 114 struct malloc_type_internal *mtip = mtp->ks_handle; 122 strlcpy(name, mtp->ks_shortdesc, sizeof(name));
|
/freebsd-9.3-release/contrib/amd/amq/ |
H A D | amq.c | 628 amq_mount_tree_p *mtp = amqproc_mnttree_1(&fs, clnt); local 629 if (mtp) { 630 amq_mount_tree *mt = *mtp; 642 xdr_pri_free((XDRPROC_T_TYPE) xdr_amq_mount_tree_p, (caddr_t) mtp);
|
/freebsd-9.3-release/etc/ |
H A D | protocols | 102 mtp 92 MTP # Multicast Transport Protocol
|
/freebsd-9.3-release/sys/dev/sfxge/common/ |
H A D | efx_mcdi.c | 588 __in const efx_mcdi_transport_t *mtp) 601 emip->emi_mtp = mtp; 586 efx_mcdi_init( __in efx_nic_t *enp, __in const efx_mcdi_transport_t *mtp) argument
|
H A D | efx.h | 165 __in const efx_mcdi_transport_t *mtp);
|