diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-16 04:45:36 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-09-16 04:45:36 +0000 |
commit | 5fb3d111f796ed194e603d54958baacb04819ccf (patch) | |
tree | f19c7261c1bd8cde6f115e5077adb7411f96d2e3 /usr.sbin/accton | |
parent | 35a4feaab011562d749a9afea5e44046c3e4c910 (diff) |
procmap fumbles with uvm_map_addr structures, which are now in RBTs
it also does proper traversal of the tree (ie, it does FOREACH)
which in turn uses MIN and NEXT operations to iterate over the whole
tree. theyre complicated and need code.
so for now this pulls in subr_tree.c from the kernel and builds it
as part of procmap. that allows for traversal of the RBT using the
same code that the kernel uses.
it is a bit ugly though because procmap updates the pointers between
items in the tree so they point at local copies instead of kernel
addresses. its made worse because RBT code has pointers between
rb_entry structs, not between the nodes.
im putting this in now to unbreak the tree. it can be polished after
coffee/naps.
Diffstat (limited to 'usr.sbin/accton')
0 files changed, 0 insertions, 0 deletions