#
1e177f19 |
|
23-Apr-2018 |
Nick Kralevich <nnk@google.com> |
[psutils] Stop using zx_object_get_child(ZX_HANDLE_INVALID) zx_object_get_child(ZX_HANDLE_INVALID) improperly allows callers to convert any koid into a handle. Stop using it so we can delete the code from the kernel. Bug ZX-1702. Change-Id: I3a7f08aee758544161ac4539c6512b6919694318
|
#
63413037 |
|
11-Dec-2017 |
Doug Evans <dje@google.com> |
[uapp][threads] New utility to dump all threads of a process Change-Id: I697559bbc4c12934b66814f6841c0b841ab89833
|
#
f3e2126c |
|
12-Sep-2017 |
Roland McGrath <mcgrathr@google.com> |
[zx] Magenta -> Zircon The Great Renaming is here! Change-Id: I3229bdeb2a3d0e40fb4db6fec8ca7d971fbffb94
|
#
3eba7de5 |
|
25-Aug-2017 |
Brian Swetland <swetland@google.com> |
[build][groups] annotate 'misc' and 'test' modules This allows us to generate a bootdata.bin which excludes them, reducing it from 4.52MB to 2.65MB The default bootdata.bin still includes all modules. Change-Id: If13bfcacba9386a691e6b7c380eed53d67bb44eb
|
#
fadb9f6d |
|
27-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp][psutils] Remove --json from ps now that memgraph handles it Update memory.md to point to memgraph Change-Id: I54d9b27a46404fe9203d35f74cb4810b5906ce0e
|
#
ce520a43 |
|
22-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp][psutils] Add the 'memgraph' tool to dump task/vmo JSON Dumps everything that 'ps --json' did, plus all of the VMOs reachable from user processes. This emits all of the information necessary to draw a VMO reference and clone graph for all of userspace. For MG-721: "Add a way to track non-mapped VMO memory usage" Change-Id: I2ff12eec0a27053c94a5f87e9a32682c76f1fbb0
|
#
c9e83814 |
|
26-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp][psutils] Split out vmo-utils.cc/h The upcoming memgraph tool needs the same logic. Change-Id: I1b0b22eba7abfa04cf84c88a75821c1c523a8cbe
|
#
22d9cf9e |
|
14-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp] Add the 'vmos' tool, a userspace 'k mx vmos'. MG-818 #done Change-Id: I484cbec43b6716dfb40b2f8336e51da70a408305
|
#
5c9b401e |
|
08-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp] Make 'ps --json' dump kernel memory info Also splits out a helper function to get the root resource. MG-819 #done Change-Id: I29806da74289e2eb004391603af75fcdea5c68f0
|
#
92ca47e2 |
|
07-Jun-2017 |
Dave Bort <dbort@google.com> |
[uapp] Teach kstats to dump kernel memory info Also print the timestamp before every stat dump, both memory and CPU. For MG-819: "Tool to print kernel memory usage" Change-Id: I2ceedd5b72a20d97287a7ed2819d3ee8aa77fde6
|
#
63366ad3 |
|
05-Jun-2017 |
Travis Geiselbrecht <travisg@google.com> |
[utils] add kstats utility which currently dumps per cpu statistics Format is currently identical to the existing kernel threadstats command. Change-Id: I056a6c4dd61aa4c741dfddc266b24dce8c8ae4aa
|
#
20838e66 |
|
22-May-2017 |
Travis Geiselbrecht <travisg@google.com> |
[system][top] Add the first stab at a top utility At the moment only supports printing all the threads in the system, sorted by percentage time. A few flags exist to limit the number of threads to display and display raw time instead of percentage. Much of the same information collected in ps should probably be also displayed. Change-Id: Icbc632d3db0d7c088cf74d830228aa4a725385fa
|
#
86681140 |
|
11-May-2017 |
Dave Bort <dbort@google.com> |
[ulib] Move psutils's size-formatter into ulib/pretty Also make format_size() return its string arg to make printf-chaining easier. Change-Id: Ie330df9e3b30ea082b759084186c66629df90cf6
|
#
77fa2af0 |
|
08-May-2017 |
Dave Bort <dbort@google.com> |
[ulib] Move psutil's processes.c into ulib/task-utils - Clean up the API a little - Call the callback on the root job, and find its koid - Don't walk processes/threads if no callback is provided Change-Id: Ia77cc84b5aee4ef331ec28054d36ae0aad67e5a0
|
#
16656ae0 |
|
05-Apr-2017 |
Brian Swetland <swetland@google.com> |
[build] flatten the build Previously we treated kernel/, system/, and third_party/ as overlays on a shared namespace. This required the concept of "canonical" module names, and a lot of complexity to ensure that things didn't collide and the build worked. This change gets rid of that, no longer passes -I to make, so that include directives from our *.mk files do not magically wildcard across various paths, etc. The most user-visible change is that everywhere where a module name is specified (MODULE_DEPS, MODULE_LIBS, etc), full module names like kernel/lib/io or system/ulib/mxio must be used instead of previously-allowed "short" names like lib/io and ulib/mxio. The build output still has a similar shape, but the first segment of the module path (kernel/, system/, or third_party/) is no longer elided under $(BUILDDIR) Change-Id: I525aba1da1c86eb7a86007bddc669f7eeebfedd5
|
#
7b8f6f42 |
|
05-Apr-2017 |
Brian Swetland <swetland@google.com> |
[build] use '.', not '-' to add "sub-module" postfixes Since '-' is a common feature of directory names in Magenta, it's not possible to easily figure out if ulib/foo-bar refers to a module named foo-bar or a module named foo with a sub-module named bar. I want to enforce that modules *must* exist in a matching directory (as the build expects) and that sub-modules *not* have a matching directory (so there's never a case where we could have a collision in the build-*/... space between a module and a sub-module. Using a character not currently used in source directory names will allow me to forbid its use in source directory names and ensure that there is no ambiguity. Change-Id: Ibf3600b33c70e6920c6c52ffc1c7139f2658034a
|
#
ea0240ba |
|
04-Apr-2017 |
Dave Bort <dbort@google.com> |
[uapp] New vmaps tool to dump process memory maps Change-Id: I1cd552aa4c598029949b568f03c0f3f885508fe2
|
#
500ab84b |
|
27-Mar-2017 |
Dave Bort <dbort@google.com> |
[uapp][ps] Show memory usage in ps(1) - Use the new process VM usage fields to show memory usage. - Sort processes before jobs at a given level to keep things closer to their parent in the listing. - Fancier formatting to keep columns lined up. - Add a unit test. Change-Id: Iddca9a485e95122814cbd2ea9402b64007895af6
|
#
12242caa |
|
07-Mar-2017 |
Brian Swetland <swetland@google.com> |
[build][musl] refer to musl libc as ulib/c This makes the build rules and the intermediate output files easier to understand, without having to modify the path where musl libc lives. The biggest observeable difference is the build intermediate files: $ ls build-magenta-pc-x86-64/ulib/c config-module.h libc.abi.h libc.abi.stamp libc.so libc.so.id libc.so.strip libc.a libc.abi.o libc.a.opts libc.so.abi libc.so.opts third_party which previously were at build-magenta-pc-x86/ulib/musl and named libmusl.* and the replacing of ulib/musl with ulib/c in the library dependencies of all the rules.mk files (the vast bulk of this change) Change-Id: If9c5d522099d2c9ac5bdb666b8e67a2eb3d316ee
|
#
d4583bde |
|
03-Mar-2017 |
Brian Swetland <swetland@google.com> |
[build] fix some bad module names These modules now end up in $(BUILDDIR)/uapp/... or udev/... as they are supposed to. Change-Id: I497d70cbad5edb6bd359d3abf0009e71c20fc622
|
#
5cfec302 |
|
27-Feb-2017 |
Ian McKellar <ianloic@google.com> |
[uapp][ps][kill][killall] Implement killall, unify psutils. Combinded logic from kill and ps for job and process tree walking, then implemented a killall on top of that. Change-Id: I9453ce50bd6526c70d395c1dce2cd46461a7b779
|