Home
last modified time | relevance | path

Searched refs:kvm_t (Results 1 – 25 of 57) sorted by relevance

123

/dragonfly/lib/libkvm/
H A Dkvm.h44 typedef struct __kvm kvm_t; typedef
66 int kvm_close (kvm_t *);
67 char **kvm_getargv (kvm_t *, const struct kinfo_proc *, int);
69 char *kvm_geterr (kvm_t *);
71 kvm_getfiles (kvm_t *, int, int, int *);
72 int kvm_getloadavg (kvm_t *, double [], int);
74 kvm_getprocs (kvm_t *, int, int, int *);
77 int kvm_nlist (kvm_t *, struct nlist *);
82 char *kvm_readstr (kvm_t *, u_long, char *, size_t *);
86 kvm_vm_map_entry_first (kvm_t *, struct vm_map *,
[all …]
H A Dkvm_private.h80 kvm_ishost(kvm_t *kd) in kvm_ishost()
87 kvm_isvkernel(kvm_t *kd) in kvm_isvkernel()
97 void _kvm_freeprocs (kvm_t *kd);
98 void _kvm_freevtop (kvm_t *);
99 int _kvm_initvtop (kvm_t *);
100 int _kvm_kvatop (kvm_t *, u_long, off_t *);
101 void *_kvm_malloc (kvm_t *kd, size_t);
102 void *_kvm_realloc (kvm_t *kd, void *, size_t);
106 void _kvm_minidump_freevtop(kvm_t *);
107 int _kvm_minidump_initvtop(kvm_t *);
[all …]
H A Dkvm.c68 kvm_notrans(kvm_t *kd) in kvm_notrans()
74 kvm_geterr(kvm_t *kd) in kvm_geterr()
125 _kvm_malloc(kvm_t *kd, size_t n) in _kvm_malloc()
151 static kvm_t *
259 kvm_t *
263 kvm_t *kd; in kvm_openfiles()
274 kvm_t *
278 kvm_t *kd; in kvm_open()
292 kvm_close(kvm_t *kd) in kvm_close()
314 kvm_nlist(kvm_t *kd, struct nlist *nl) in kvm_nlist()
[all …]
H A Dkvm_minidump_x86_64.c76 hpt_insert(kvm_t *kd, vm_paddr_t pa, int64_t off) in hpt_insert()
91 hpt_find(kvm_t *kd, vm_paddr_t pa) in hpt_find()
106 inithash(kvm_t *kd, uint64_t *base, int len, off_t off) in inithash()
126 _kvm_minidump_freevtop(kvm_t *kd) in _kvm_minidump_freevtop()
138 static int _kvm_minidump_init_hdr1(kvm_t *kd, struct vmstate *vmst,
140 static int _kvm_minidump_init_hdr2(kvm_t *kd, struct vmstate *vmst,
144 _kvm_minidump_initvtop(kvm_t *kd) in _kvm_minidump_initvtop()
182 _kvm_minidump_init_hdr1(kvm_t *kd, struct vmstate *vmst, in _kvm_minidump_init_hdr1()
236 _kvm_minidump_init_hdr2(kvm_t *kd, struct vmstate *vmst, in _kvm_minidump_init_hdr2()
288 _kvm_minidump_vatop(kvm_t *kd, u_long va, off_t *pa) in _kvm_minidump_vatop()
[all …]
H A Dkvm_getswapinfo.c79 static int nlist_init(kvm_t *kd);
80 static void dump_blist(kvm_t *kd);
81 static int kvm_getswapinfo_sysctl(kvm_t *kd, struct kvm_swap *swap_ary,
117 kvm_t *kd, in kvm_getswapinfo()
193 nlist_init(kvm_t *kd) in nlist_init()
250 kvm_t *kd, in scanradix()
376 dump_blist(kvm_t *kd) in dump_blist()
417 kvm_getswapinfo_sysctl(kvm_t *kd __unused, struct kvm_swap *swap_ary, in kvm_getswapinfo_sysctl()
H A Dkvm_proc.c83 kinfo_resize_proc(kvm_t *kd, struct kinfo_proc *bp) in kinfo_resize_proc()
123 kvm_lwptraverse(kvm_t *kd, struct lwp *lwp, uintptr_t lwppos) in kvm_lwptraverse()
144 kvm_firstlwp(kvm_t *kd, struct lwp *lwp, struct proc *proc) in kvm_firstlwp()
160 kvm_nextlwp(kvm_t *kd, uintptr_t lwppos, struct lwp *lwp) in kvm_nextlwp()
197 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, in kvm_proclist()
465 kvm_getprocs(kvm_t *kd, int op, int arg, int *cnt) in kvm_getprocs()
541 _kvm_freeprocs(kvm_t *kd) in _kvm_freeprocs()
550 _kvm_realloc(kvm_t *kd, void *p, size_t n) in _kvm_realloc()
787 kvm_doargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr, in kvm_doargv()
829 kvm_getargv(kvm_t *kd, const struct kinfo_proc *kp, int nchr) in kvm_getargv()
[all …]
H A Dkvm_x86_64.c81 _kvm_maphdrs(kvm_t *kd, size_t sz) in _kvm_maphdrs()
110 _kvm_pa2off(kvm_t *kd, uint64_t pa, off_t *ofs) in _kvm_pa2off()
133 _kvm_freevtop(kvm_t *kd) in _kvm_freevtop()
151 _kvm_initvtop(kvm_t *kd) in _kvm_initvtop()
223 _kvm_vatop(kvm_t *kd, u_long va, off_t *pa) in _kvm_vatop()
361 _kvm_kvatop(kvm_t *kd, u_long va, off_t *pa) in _kvm_kvatop()
/dragonfly/test/debug/
H A Dvnodeinfo.c84 static void dumplocks(kvm_t *kd, struct lockf *lockf);
86 static int getobjpages(kvm_t *kd, struct vm_object *obj);
91 void (*dumpfn)(kvm_t *, void *);
107 kvm_t *kd; in main()
196 dumpmount(kvm_t *kd, struct mount *mp) in dumpmount()
395 dumpbufs(kvm_t *kd, void *bufp, const char *id) in dumpbufs()
417 dumplocks(kvm_t *kd, struct lockf *lockf) in dumplocks()
442 dumplockinfo(kvm_t *kd, struct lockf_range *item) in dumplockinfo()
462 getobjpages(kvm_t *kd, struct vm_object *obj) in getobjpages()
472 getobjvnpsize(kvm_t *kd, struct vm_object *obj) in getobjvnpsize()
[all …]
H A Dvmpagequeues.c80 static void kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m);
81 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
82 static int kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
89 kvm_t *kd; in main()
157 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
166 kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread_err()
H A Dwildcardinfo.c77 static void dumptcb(kvm_t *kd, intptr_t tcbinfo);
78 static void dumpinpcontainerhead(kvm_t *kd, int index, void *kptr);
79 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
84 kvm_t *kd; in main()
123 dumptcb(kvm_t *kd, intptr_t tcbaddr) in dumptcb()
147 dumpinpcontainerhead(kvm_t *kd, int index, void *kptr) in dumpinpcontainerhead()
176 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dvmobjinfo.c86 static void scan_vmobjs(kvm_t *kd, struct object_q *obj_list);
87 static void dump_swap(kvm_t *kd, struct swblock *swbp);
88 static void dump_memq(kvm_t *kd, struct vm_page *pgp);
89 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
96 kvm_t *kd; in main()
150 scan_vmobjs(kvm_t *kd, struct object_q *obj_list) in scan_vmobjs()
176 dump_swap(kvm_t *kd, struct swblock *swbp) in dump_swap()
227 dump_memq(kvm_t *kd, struct vm_page *pgp) in dump_memq()
265 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dmbufinfo.c89 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
90 static void dumpmb(kvm_t *kd, struct mbtrack *mtp);
91 static void dumpmbdata(kvm_t *kd, char *data, int len);
107 kvm_t *kd; in main()
157 dumpmb(kvm_t *kd, struct mbtrack *mtp) in dumpmb()
195 dumpmbdata(kvm_t *kd, char *data, int len) in dumpmbdata()
225 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dncptrace.c77 static char *getncppath(kvm_t *kd, struct nchandle *nch, char *buf, int bytes);
78 static int printvfc(kvm_t *kd, struct vfsconf *vfc);
79 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
80 static void dumpncp(kvm_t *kd, int isnull, int tab, struct namecache *,
95 kvm_t *kd; in main()
167 dumpncp(kvm_t *kd, int isnull, int tab, in dumpncp()
261 getncppath(kvm_t *kd, struct nchandle *nch, char *base, int bytes) in getncppath()
291 printvfc(kvm_t *kd, struct vfsconf *vfc) in printvfc()
302 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dvmpagehash.c92 void checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj);
93 static void kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m);
94 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
95 static int kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
104 kvm_t *kd; in main()
271 checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj) in checkpage()
301 kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m) in kkread_vmpage()
321 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
330 kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread_err()
H A Dh2inodes.c56 static void h2inumscan(kvm_t *kd, int tab, uintptr_t cp);
57 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
70 kvm_t *kd; in main()
119 h2inumscan(kvm_t *kd, int tab, uintptr_t cp) in h2inumscan()
135 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dh2dio.c56 static void h2dioscan(kvm_t *kd, int tab, uintptr_t cp);
57 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
70 kvm_t *kd; in main()
119 h2dioscan(kvm_t *kd, int tab, uintptr_t cp) in h2dioscan()
135 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dvmpageinfo.c97 void checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj);
98 static void kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m);
99 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
100 static int kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
104 static void dumpsltrack(kvm_t *kd);
135 kvm_t *kd; in main()
459 checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj) in checkpage()
489 kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m) in kkread_vmpage()
509 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
518 kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread_err()
[all …]
H A Dslabinfo.c78 int slzonedump(kvm_t *kd, SLZoneList *list);
79 void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
86 kvm_t *kd; in main()
164 slzonedump(kvm_t *kd, SLZoneList *list) in slzonedump()
184 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dvmpqinactive.c96 void checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj);
97 static void kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m);
98 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
99 static int kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
103 static void dumpsltrack(kvm_t *kd);
134 kvm_t *kd; in main()
489 checkpage(kvm_t *kd, vm_page_t mptr, vm_page_t m, struct vm_object *obj) in checkpage()
521 kkread_vmpage(kvm_t *kd, u_long addr, vm_page_t m) in kkread_vmpage()
541 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
550 kkread_err(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread_err()
[all …]
H A Dpsinfo.c83 static void mapscan(kvm_t *kd, vm_map_entry_t kptr, vm_map_entry_t ken,
86 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
88 static void dumpproc(kvm_t *kd, struct kinfo_proc *kp);
95 kvm_t *kd; in main()
164 dumpproc(kvm_t *kd, struct kinfo_proc *kp) in dumpproc()
295 mapscan(kvm_t *kd, vm_map_entry_t kptr, vm_map_entry_t ken, vm_offset_t *lastp)
401 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dh2chains.c56 static void h2chainscan(kvm_t *kd, int tab, uintptr_t cp,
58 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
71 kvm_t *kd; in main()
131 h2chainscan(kvm_t *kd, int tab, uintptr_t cp, uintptr_t pcp, int pflags) in h2chainscan()
170 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dzallocinfo.c78 static void dumpslab(kvm_t *kd, int cpu, struct SLGlobalData *slab);
79 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
88 kvm_t *kd; in main()
143 dumpslab(kvm_t *kd, int cpu, struct SLGlobalData *slab) in dumpslab()
232 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dbufqueues.c92 static int kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes, int out);
93 static void scan_queues(kvm_t *kd, int cpu, struct bufpcpu *bqp);
111 kvm_t *kd; in main()
202 scan_queues(kvm_t *kd, int cpu, struct bufpcpu *bqp) in scan_queues()
248 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes, int out) in kkread()
H A Dkmapinfo.c80 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
81 static void mapscan(kvm_t *kd, vm_map_entry_t kptr, vm_map_entry_t ken,
89 kvm_t *kd; in main()
206 mapscan(kvm_t *kd, vm_map_entry_t kptr, vm_map_entry_t ken, vm_offset_t *lastp) in mapscan()
331 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()
H A Dksyscalls.c71 static void kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes);
78 kvm_t *kd; in main()
116 kkread(kvm_t *kd, u_long addr, void *buf, size_t nbytes) in kkread()

123