Searched refs:mtp (Results 1 - 19 of 19) sorted by relevance

/freebsd-13-stable/lib/libmemstat/
H A Dmemstat.c91 memstat_mtl_next(struct memory_type *mtp) argument
94 return (LIST_NEXT(mtp, mt_list));
100 struct memory_type *mtp; local
102 while ((mtp = LIST_FIRST(&list->mtl_list))) {
103 free(mtp->mt_percpu_alloc);
104 free(mtp->mt_percpu_cache);
105 LIST_REMOVE(mtp, mt_list);
106 free(mtp);
134 struct memory_type *mtp; local
136 LIST_FOREACH(mtp,
155 struct memory_type *mtp; local
181 _memstat_mt_reset_stats(struct memory_type *mtp, int maxcpus) argument
218 memstat_get_name(const struct memory_type *mtp) argument
225 memstat_get_allocator(const struct memory_type *mtp) argument
232 memstat_get_countlimit(const struct memory_type *mtp) argument
239 memstat_get_byteslimit(const struct memory_type *mtp) argument
246 memstat_get_sizemask(const struct memory_type *mtp) argument
253 memstat_get_size(const struct memory_type *mtp) argument
260 memstat_get_rsize(const struct memory_type *mtp) argument
267 memstat_get_memalloced(const struct memory_type *mtp) argument
274 memstat_get_memfreed(const struct memory_type *mtp) argument
281 memstat_get_numallocs(const struct memory_type *mtp) argument
288 memstat_get_numfrees(const struct memory_type *mtp) argument
295 memstat_get_bytes(const struct memory_type *mtp) argument
302 memstat_get_count(const struct memory_type *mtp) argument
309 memstat_get_free(const struct memory_type *mtp) argument
316 memstat_get_failures(const struct memory_type *mtp) argument
323 memstat_get_sleeps(const struct memory_type *mtp) argument
330 memstat_get_xdomain(const struct memory_type *mtp) argument
337 memstat_get_caller_pointer(const struct memory_type *mtp, int index) argument
344 memstat_set_caller_pointer(struct memory_type *mtp, int index, void *value) argument
351 memstat_get_caller_uint64(const struct memory_type *mtp, int index) argument
358 memstat_set_caller_uint64(struct memory_type *mtp, int index, uint64_t value) argument
365 memstat_get_zonefree(const struct memory_type *mtp) argument
372 memstat_get_kegfree(const struct memory_type *mtp) argument
379 memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) argument
386 memstat_get_percpu_memfreed(const struct memory_type *mtp, int cpu) argument
393 memstat_get_percpu_numallocs(const struct memory_type *mtp, int cpu) argument
400 memstat_get_percpu_numfrees(const struct memory_type *mtp, int cpu) argument
407 memstat_get_percpu_sizemask(const struct memory_type *mtp, int cpu) argument
414 memstat_get_percpu_caller_pointer(const struct memory_type *mtp, int cpu, int index) argument
422 memstat_set_percpu_caller_pointer(struct memory_type *mtp, int cpu, int index, void *value) argument
430 memstat_get_percpu_caller_uint64(const struct memory_type *mtp, int cpu, int index) argument
438 memstat_set_percpu_caller_uint64(struct memory_type *mtp, int cpu, int index, uint64_t value) argument
446 memstat_get_percpu_free(const struct memory_type *mtp, int cpu) argument
[all...]
H A Dmemstat.h100 struct memory_type *memstat_mtl_next(struct memory_type *mtp);
125 int memstat_malloc_zone_used(const struct memory_type *mtp, size_t n);
130 const char *memstat_get_name(const struct memory_type *mtp);
131 int memstat_get_allocator(const struct memory_type *mtp);
132 uint64_t memstat_get_countlimit(const struct memory_type *mtp);
133 uint64_t memstat_get_byteslimit(const struct memory_type *mtp);
134 uint64_t memstat_get_sizemask(const struct memory_type *mtp);
135 uint64_t memstat_get_size(const struct memory_type *mtp);
136 uint64_t memstat_get_rsize(const struct memory_type *mtp);
137 uint64_t memstat_get_memalloced(const struct memory_type *mtp);
[all...]
H A Dmemstat_uma.c82 struct memory_type *mtp; local
181 mtp = memstat_mtl_find(list, ALLOCATOR_UMA,
184 mtp = NULL;
185 if (mtp == NULL)
186 mtp = _memstat_mt_allocate(list, ALLOCATOR_UMA,
188 if (mtp == NULL) {
198 _memstat_mt_reset_stats(mtp, maxid + 1);
200 mtp->mt_numallocs = uthp->uth_allocs;
201 mtp->mt_numfrees = uthp->uth_frees;
202 mtp
312 struct memory_type *mtp; local
[all...]
H A Dmemstat_malloc.c85 struct memory_type *mtp; local
189 mtp = memstat_mtl_find(list, ALLOCATOR_MALLOC,
192 mtp = NULL;
193 if (mtp == NULL)
194 mtp = _memstat_mt_allocate(list, ALLOCATOR_MALLOC,
196 if (mtp == NULL) {
206 _memstat_mt_reset_stats(mtp, maxcpus);
216 mtp->mt_memalloced += mtsp->mts_memalloced;
217 mtp->mt_memfreed += mtsp->mts_memfreed;
218 mtp
315 struct memory_type *mtp; local
539 memstat_malloc_zone_used(const struct memory_type *mtp, size_t n) argument
[all...]
H A Dmemstat_internal.h127 void _memstat_mt_reset_stats(struct memory_type *mtp,
/freebsd-13-stable/usr.bin/netstat/
H A Dmbuf.c73 struct memory_type *mtp; local
122 mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, MBUF_MEM_NAME);
123 if (mtp == NULL) {
127 mbuf_count = memstat_get_count(mtp);
128 mbuf_bytes = memstat_get_bytes(mtp);
129 mbuf_free = memstat_get_free(mtp);
130 mbuf_failures = memstat_get_failures(mtp);
131 mbuf_sleeps = memstat_get_sleeps(mtp);
132 mbuf_size = memstat_get_size(mtp);
134 mtp
[all...]
/freebsd-13-stable/sys/kern/
H A Dkern_malloc.c325 mtp_set_subzone(struct malloc_type *mtp) argument
332 mtip = &mtp->ks_mti;
333 desc = mtp->ks_shortdesc;
342 mtp_get_subzone(struct malloc_type *mtp) argument
346 mtip = &mtp->ks_mti;
357 mtp_set_subzone(struct malloc_type *mtp) argument
361 mtip = &mtp->ks_mti;
366 mtp_get_subzone(struct malloc_type *mtp) argument
380 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, argument
387 mtip = &mtp
410 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) argument
424 malloc_type_freed(struct malloc_type *mtp, unsigned long size) argument
501 malloc_dbg(caddr_t *vap, size_t *sizep, struct malloc_type *mtp, int flags) argument
586 malloc_large(size_t *size, struct malloc_type *mtp, struct domainset *policy, int flags DEBUG_REDZONE_ARG_DEF) argument
631 malloc(size_t size, struct malloc_type *mtp, int flags) argument
672 malloc_domain(size_t *sizep, int *indxp, struct malloc_type *mtp, int domain, int flags) argument
695 malloc_domainset(size_t size, struct malloc_type *mtp, struct domainset *ds, int flags) argument
738 malloc_exec(size_t size, struct malloc_type *mtp, int flags) argument
745 malloc_domainset_exec(size_t size, struct malloc_type *mtp, struct domainset *ds, int flags) argument
767 malloc_domainset_aligned(size_t size, size_t align, struct malloc_type *mtp, struct domainset *ds, int flags) argument
820 free_save_type(void *addr, struct malloc_type *mtp, u_long size) argument
841 free_dbg(void **addrp, struct malloc_type *mtp) argument
878 free(void *addr, struct malloc_type *mtp) argument
918 zfree(void *addr, struct malloc_type *mtp) argument
956 realloc(void *addr, size_t size, struct malloc_type *mtp, int flags) argument
1019 reallocf(void *addr, size_t size, struct malloc_type *mtp, int flags) argument
1217 struct malloc_type *mtp; local
1242 struct malloc_type *mtp, *temp; local
1290 struct malloc_type *mtp; local
1307 struct malloc_type *mtp; local
1373 struct malloc_type *mtp, **bufmtp; local
1432 struct malloc_type *mtp; local
1496 struct malloc_type *mtp; local
[all...]
/freebsd-13-stable/sys/libkern/
H A Dasprintf.c37 vasprintf(char **buf, struct malloc_type *mtp, const char *format, va_list va) argument
53 *buf = malloc(len, mtp, M_NOWAIT);
59 free(*buf, mtp);
67 asprintf(char **buf, struct malloc_type *mtp, const char *format, ...) argument
73 ret = vasprintf(buf, mtp, format, va);
/freebsd-13-stable/sys/vm/
H A Dmemguard.h54 #define memguard_realloc(a, s, mtp, f) NULL
57 #define memguard_cmp_mtp(mtp, size) 0
H A Dmemguard.c96 /* If mtp is NULL, it will be initialized in memguard_cmp() */
418 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp, argument
459 memguard_cmp_mtp(struct malloc_type *mtp, unsigned long size) argument
470 return (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0);
480 return (mtp == vm_memguard_mtype);
481 if (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0) {
482 vm_memguard_mtype = mtp;
/freebsd-13-stable/usr.bin/vmstat/
H A Dvmstat.c1409 struct memory_type *mtp; local
1440 for (mtp = memstat_mtl_first(mtlp); mtp != NULL;
1441 mtp = memstat_mtl_next(mtp)) {
1442 if (memstat_get_numallocs(mtp) == 0 &&
1443 memstat_get_count(mtp) == 0)
1448 memstat_get_name(mtp), (uintmax_t)memstat_get_count(mtp),
1449 ((uintmax_t)memstat_get_bytes(mtp)
1474 struct memory_type *mtp; local
[all...]
/freebsd-13-stable/sys/cddl/dev/dtmalloc/
H A Ddtmalloc.c114 dtmalloc_type_cb(struct malloc_type *mtp, void *arg __unused) argument
117 struct malloc_type_internal *mtip = &mtp->ks_mti;
125 strlcpy(name, mtp->ks_shortdesc, sizeof(name));
/freebsd-13-stable/sys/dev/sfxge/common/
H A Dsiena_mcdi.c173 __in const efx_mcdi_transport_t *mtp)
180 _NOTE(ARGUNUSED(mtp))
171 siena_mcdi_init( __in efx_nic_t *enp, __in const efx_mcdi_transport_t *mtp) argument
H A Dsiena_impl.h114 __in const efx_mcdi_transport_t *mtp);
H A Def10_impl.h316 __in const efx_mcdi_transport_t *mtp);
H A Defx.h285 __in const efx_mcdi_transport_t *mtp);
/freebsd-13-stable/usr.sbin/bhyve/
H A Dbhyverun.c448 struct mt_vmm_info *mtp; local
451 mtp = param;
452 vcpu = mtp->mt_vcpu;
455 pthread_set_name_np(mtp->mt_thr, tname);
463 vm_loop(mtp->mt_ctx, vcpu, vmexit[vcpu].rip);
/freebsd-13-stable/sys/sys/
H A Dmalloc.h268 struct malloc_type *mtp, struct domainset *ds, int flags)
H A Dsystm.h316 int asprintf(char **ret, struct malloc_type *mtp, const char *format,
323 int vasprintf(char **ret, struct malloc_type *mtp, const char *format,

Completed in 211 milliseconds