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

/freebsd-12-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_caller_pointer(const struct memory_type *mtp, int index) argument
337 memstat_set_caller_pointer(struct memory_type *mtp, int index, void *value) argument
344 memstat_get_caller_uint64(const struct memory_type *mtp, int index) argument
351 memstat_set_caller_uint64(struct memory_type *mtp, int index, uint64_t value) argument
358 memstat_get_zonefree(const struct memory_type *mtp) argument
365 memstat_get_kegfree(const struct memory_type *mtp) argument
372 memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) argument
379 memstat_get_percpu_memfreed(const struct memory_type *mtp, int cpu) argument
386 memstat_get_percpu_numallocs(const struct memory_type *mtp, int cpu) argument
393 memstat_get_percpu_numfrees(const struct memory_type *mtp, int cpu) argument
400 memstat_get_percpu_sizemask(const struct memory_type *mtp, int cpu) argument
407 memstat_get_percpu_caller_pointer(const struct memory_type *mtp, int cpu, int index) argument
415 memstat_set_percpu_caller_pointer(struct memory_type *mtp, int cpu, int index, void *value) argument
423 memstat_get_percpu_caller_uint64(const struct memory_type *mtp, int cpu, int index) argument
431 memstat_set_percpu_caller_uint64(struct memory_type *mtp, int cpu, int index, uint64_t value) argument
439 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);
123 const char *memstat_get_name(const struct memory_type *mtp);
124 int memstat_get_allocator(const struct memory_type *mtp);
125 uint64_t memstat_get_countlimit(const struct memory_type *mtp);
126 uint64_t memstat_get_byteslimit(const struct memory_type *mtp);
127 uint64_t memstat_get_sizemask(const struct memory_type *mtp);
128 uint64_t memstat_get_size(const struct memory_type *mtp);
129 uint64_t memstat_get_rsize(const struct memory_type *mtp);
130 uint64_t memstat_get_memalloced(const struct memory_type *mtp);
131 uint64_t memstat_get_memfreed(const struct memory_type *mtp);
[all...]
H A Dmemstat_uma.c81 struct memory_type *mtp; local
180 mtp = memstat_mtl_find(list, ALLOCATOR_UMA,
183 mtp = NULL;
184 if (mtp == NULL)
185 mtp = _memstat_mt_allocate(list, ALLOCATOR_UMA,
187 if (mtp == NULL) {
197 _memstat_mt_reset_stats(mtp, maxid + 1);
199 mtp->mt_numallocs = uthp->uth_allocs;
200 mtp->mt_numfrees = uthp->uth_frees;
201 mtp
301 struct memory_type *mtp; local
[all...]
H A Dmemstat_malloc.c73 struct memory_type *mtp; local
172 mtp = memstat_mtl_find(list, ALLOCATOR_MALLOC,
175 mtp = NULL;
176 if (mtp == NULL)
177 mtp = _memstat_mt_allocate(list, ALLOCATOR_MALLOC,
179 if (mtp == NULL) {
189 _memstat_mt_reset_stats(mtp, maxcpus);
199 mtp->mt_memalloced += mtsp->mts_memalloced;
200 mtp->mt_memfreed += mtsp->mts_memfreed;
201 mtp
298 struct memory_type *mtp; local
[all...]
H A Dmemstat_internal.h126 void _memstat_mt_reset_stats(struct memory_type *mtp,
/freebsd-12-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-12-stable/sys/kern/
H A Dkern_malloc.c304 mtp_set_subzone(struct malloc_type *mtp) argument
311 mtip = mtp->ks_handle;
312 desc = mtp->ks_shortdesc;
321 mtp_get_subzone(struct malloc_type *mtp) argument
325 mtip = mtp->ks_handle;
336 mtp_set_subzone(struct malloc_type *mtp) argument
340 mtip = mtp->ks_handle;
345 mtp_get_subzone(struct malloc_type *mtp) argument
366 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, argument
373 mtip = mtp
396 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) argument
410 malloc_type_freed(struct malloc_type *mtp, unsigned long size) argument
487 malloc_dbg(caddr_t *vap, size_t *sizep, struct malloc_type *mtp, int flags) argument
555 malloc(size_t size, struct malloc_type *mtp, int flags) argument
600 malloc_domain(size_t size, struct malloc_type *mtp, int domain, int flags) argument
644 malloc_domainset(size_t size, struct malloc_type *mtp, struct domainset *ds, int flags) argument
662 malloc_domainset_aligned(size_t size, size_t align, struct malloc_type *mtp, struct domainset *ds, int flags) argument
715 free_save_type(void *addr, struct malloc_type *mtp, u_long size) argument
736 free_dbg(void **addrp, struct malloc_type *mtp) argument
773 free(void *addr, struct malloc_type *mtp) argument
805 free_domain(void *addr, struct malloc_type *mtp) argument
842 realloc(void *addr, size_t size, struct malloc_type *mtp, int flags) argument
903 reallocf(void *addr, size_t size, struct malloc_type *mtp, int flags) argument
1096 struct malloc_type *mtp; local
1121 struct malloc_type *mtp, *temp; local
1174 struct malloc_type *mtp; local
1191 struct malloc_type *mtp; local
1257 struct malloc_type *mtp, **bufmtp; local
1293 struct malloc_type *mtp; local
1325 struct malloc_type *mtp; local
[all...]
/freebsd-12-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-12-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.c95 /* 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-12-stable/usr.bin/vmstat/
H A Dvmstat.c1395 struct memory_type *mtp; local
1424 for (mtp = memstat_mtl_first(mtlp); mtp != NULL;
1425 mtp = memstat_mtl_next(mtp)) {
1426 if (memstat_get_numallocs(mtp) == 0 &&
1427 memstat_get_count(mtp) == 0)
1433 memstat_get_name(mtp), (uintmax_t)memstat_get_count(mtp),
1434 ((uintmax_t)memstat_get_bytes(mtp)
1459 struct memory_type *mtp; local
[all...]
/freebsd-12-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_handle;
125 strlcpy(name, mtp->ks_shortdesc, sizeof(name));
/freebsd-12-stable/sys/dev/sfxge/common/
H A Dsiena_mcdi.c170 __in const efx_mcdi_transport_t *mtp)
177 _NOTE(ARGUNUSED(mtp))
168 siena_mcdi_init( __in efx_nic_t *enp, __in const efx_mcdi_transport_t *mtp) argument
H A Dsiena_impl.h106 __in const efx_mcdi_transport_t *mtp);
H A Def10_impl.h298 __in const efx_mcdi_transport_t *mtp);
H A Defx.h249 __in const efx_mcdi_transport_t *mtp);
/freebsd-12-stable/contrib/amd/amq/
H A Damq.c793 amq_mount_tree_p *mtp = amqproc_mnttree_1(&fs, clnt); local
794 if (mtp) {
795 amq_mount_tree *mt = *mtp;
807 xdr_pri_free((XDRPROC_T_TYPE) xdr_amq_mount_tree_p, (caddr_t) mtp);
/freebsd-12-stable/usr.sbin/bhyve/
H A Dbhyverun.c415 struct mt_vmm_info *mtp; local
418 mtp = param;
419 vcpu = mtp->mt_vcpu;
422 pthread_set_name_np(mtp->mt_thr, tname);
427 vm_loop(mtp->mt_ctx, vcpu, vmexit[vcpu].rip);
/freebsd-12-stable/sys/sys/
H A Dmalloc.h256 struct malloc_type *mtp, struct domainset *ds, int flags)
H A Dsystm.h285 int asprintf(char **ret, struct malloc_type *mtp, const char *format,
292 int vasprintf(char **ret, struct malloc_type *mtp, const char *format,

Completed in 135 milliseconds