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

/freebsd-11-stable/lib/libmemstat/
H A Dmemstat.c88 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_rsize(const struct memory_type *mtp) argument
264 memstat_get_memalloced(const struct memory_type *mtp) argument
271 memstat_get_memfreed(const struct memory_type *mtp) argument
278 memstat_get_numallocs(const struct memory_type *mtp) argument
285 memstat_get_numfrees(const struct memory_type *mtp) argument
292 memstat_get_bytes(const struct memory_type *mtp) argument
299 memstat_get_count(const struct memory_type *mtp) argument
306 memstat_get_free(const struct memory_type *mtp) argument
313 memstat_get_failures(const struct memory_type *mtp) argument
320 memstat_get_sleeps(const struct memory_type *mtp) argument
327 memstat_get_caller_pointer(const struct memory_type *mtp, int index) argument
334 memstat_set_caller_pointer(struct memory_type *mtp, int index, void *value) argument
341 memstat_get_caller_uint64(const struct memory_type *mtp, int index) argument
348 memstat_set_caller_uint64(struct memory_type *mtp, int index, uint64_t value) argument
355 memstat_get_zonefree(const struct memory_type *mtp) argument
362 memstat_get_kegfree(const struct memory_type *mtp) argument
369 memstat_get_percpu_memalloced(const struct memory_type *mtp, int cpu) argument
376 memstat_get_percpu_memfreed(const struct memory_type *mtp, int cpu) argument
383 memstat_get_percpu_numallocs(const struct memory_type *mtp, int cpu) argument
390 memstat_get_percpu_numfrees(const struct memory_type *mtp, int cpu) argument
397 memstat_get_percpu_sizemask(const struct memory_type *mtp, int cpu) argument
404 memstat_get_percpu_caller_pointer(const struct memory_type *mtp, int cpu, int index) argument
412 memstat_set_percpu_caller_pointer(struct memory_type *mtp, int cpu, int index, void *value) argument
420 memstat_get_percpu_caller_uint64(const struct memory_type *mtp, int cpu, int index) argument
428 memstat_set_percpu_caller_uint64(struct memory_type *mtp, int cpu, int index, uint64_t value) argument
436 memstat_get_percpu_free(const struct memory_type *mtp, int cpu) argument
[all...]
H A Dmemstat.h98 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_rsize(const struct memory_type *mtp);
128 uint64_t memstat_get_memalloced(const struct memory_type *mtp);
129 uint64_t memstat_get_memfreed(const struct memory_type *mtp);
[all...]
H A Dmemstat_uma.c80 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
300 struct memory_type *mtp; local
[all...]
H A Dmemstat_malloc.c71 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 Dmemstat_internal.h124 void _memstat_mt_reset_stats(struct memory_type *mtp,
/freebsd-11-stable/usr.bin/netstat/
H A Dmbuf.c71 struct memory_type *mtp; local
120 mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, MBUF_MEM_NAME);
121 if (mtp == NULL) {
125 mbuf_count = memstat_get_count(mtp);
126 mbuf_bytes = memstat_get_bytes(mtp);
127 mbuf_free = memstat_get_free(mtp);
128 mbuf_failures = memstat_get_failures(mtp);
129 mbuf_sleeps = memstat_get_sleeps(mtp);
130 mbuf_size = memstat_get_size(mtp);
132 mtp
[all...]
/freebsd-11-stable/sys/kern/
H A Dkern_malloc.c322 malloc_type_zone_allocated(struct malloc_type *mtp, unsigned long size, argument
329 mtip = mtp->ks_handle;
343 (uintptr_t) mtp, (uintptr_t) mtip,
352 malloc_type_allocated(struct malloc_type *mtp, unsigned long size) argument
356 malloc_type_zone_allocated(mtp, size, -1);
366 malloc_type_freed(struct malloc_type *mtp, unsigned long size) argument
372 mtip = mtp->ks_handle;
382 (uintptr_t) mtp, (uintptr_t) mtip,
436 malloc(unsigned long size, struct malloc_type *mtp, int flags) argument
447 KASSERT(mtp
548 free(void *addr, struct malloc_type *mtp) argument
611 realloc(void *addr, unsigned long size, struct malloc_type *mtp, int flags) argument
672 reallocf(void *addr, unsigned long size, struct malloc_type *mtp, int flags) argument
837 struct malloc_type *mtp; local
861 struct malloc_type *mtp, *temp; local
913 struct malloc_type *mtp; local
929 struct malloc_type *mtp; local
986 struct malloc_type *mtp, **bufmtp; local
1021 struct malloc_type *mtp; local
1052 struct malloc_type *mtp; local
[all...]
/freebsd-11-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-11-stable/sys/vm/
H A Dmemguard.h51 #define memguard_realloc(a, s, mtp, f) NULL
53 #define memguard_cmp_mtp(mtp, size) 0
H A Dmemguard.c93 /* If mtp is NULL, it will be initialized in memguard_cmp() */
431 memguard_realloc(void *addr, unsigned long size, struct malloc_type *mtp, argument
472 memguard_cmp_mtp(struct malloc_type *mtp, unsigned long size) argument
483 return (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0);
493 return (mtp == vm_memguard_mtype);
494 if (strcmp(mtp->ks_shortdesc, vm_memguard_desc) == 0) {
495 vm_memguard_mtype = mtp;
/freebsd-11-stable/usr.bin/vmstat/
H A Dvmstat.c1382 struct memory_type *mtp; local
1411 for (mtp = memstat_mtl_first(mtlp); mtp != NULL;
1412 mtp = memstat_mtl_next(mtp)) {
1413 if (memstat_get_numallocs(mtp) == 0 &&
1414 memstat_get_count(mtp) == 0)
1420 memstat_get_name(mtp), (uintmax_t)memstat_get_count(mtp),
1421 ((uintmax_t)memstat_get_bytes(mtp)
1446 struct memory_type *mtp; local
[all...]
/freebsd-11-stable/sys/cddl/dev/dtmalloc/
H A Ddtmalloc.c111 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-11-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.h104 __in const efx_mcdi_transport_t *mtp);
H A Def10_impl.h298 __in const efx_mcdi_transport_t *mtp);
H A Defx.h247 __in const efx_mcdi_transport_t *mtp);
/freebsd-11-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-11-stable/usr.sbin/bhyve/
H A Dbhyverun.c450 struct mt_vmm_info *mtp; local
453 mtp = param;
454 vcpu = mtp->mt_vcpu;
457 pthread_set_name_np(mtp->mt_thr, tname);
459 vm_loop(mtp->mt_ctx, vcpu, vmexit[vcpu].rip);
/freebsd-11-stable/sys/sys/
H A Dsystm.h229 int asprintf(char **ret, struct malloc_type *mtp, const char *format,
236 int vasprintf(char **ret, struct malloc_type *mtp, const char *format,

Completed in 139 milliseconds