Commit Graph

46 Commits

Author SHA1 Message Date
Alastair Poole 6d5f404eb3 proc: Add basic thread support (Linux).
Just a start.
2020-05-12 20:34:07 +01:00
Alastair Poole faf3b8d989 proc: refactor for thread information.
If we are going to be fetching per-process thread states we really
need to clean up this Linux /proc/*/stat parsing.

I think this /proc fs implementation just sort of "happened".
To be decided which I prefer yet of the four architectures, def, not
Linux though :)
2020-05-12 19:51:05 +01:00
Alastair Poole 786817919c proc: trim argument (FreeBSD) 2020-05-12 11:04:21 +01:00
Alastair Poole 5b839a79a3 proc: trim argument. 2020-05-12 10:56:36 +01:00
Alastair Poole 1c04d0b527 OpenBSD: Improve Command Parsing. 2020-05-11 17:52:48 +01:00
Alastair Poole 39d22d66ea macos: dont return if we cannot get workqueueinfo.
Set the memory to zero here when it's unavailable.
2020-05-11 17:00:33 +01:00
Alastair Poole 568045625e proc: FreeBSD changes. 2020-05-11 16:29:49 +01:00
Alastair Poole 0d98368d0c proc: Process Memory Improvement 2020-05-11 16:12:04 +01:00
Alastair Poole 2baef9e5bf proc: Tidy line lengths. 2020-05-11 10:22:26 +01:00
Alastair Poole a80d244476 process: Make sure Linux always parses cmdline. 2020-05-09 00:14:30 +01:00
Alastair Poole fc60c351ca process: Fix Linux Process Arguments.
Arguments are NULL terminated until we hit padded NULLs.
2020-05-09 00:00:56 +01:00
Alastair Poole 3b82d992ac proc: fix freebsd proc argument. 2020-05-08 22:14:01 +01:00
Alastair Poole bda2a51124 FreeBSD: Obtain correct PID_MAX (Fallback). 2020-04-29 09:50:55 +01:00
Alastair Poole c888e30153 proc: fix build. 2020-04-27 13:48:35 +01:00
Alastair Poole 2585f7768f process: Formatting. 2020-04-27 13:45:02 +01:00
Alastair Poole 0a9c11da7b macOS: Access stack of process for argc and argv.
This allows us to properly obtain the command and its arguments
as per other operating systems we support.
2020-04-27 13:41:05 +01:00
Alastair Poole 3559064cfd macOS: Use proc_bsdinfo pbi_name if possible. 2020-04-26 15:31:18 +01:00
Alastair Poole 988105e4eb proc: clean up 2020-04-26 01:55:47 +01:00
Alastair Poole 51d3977a9d linux:process memory use.
On linux distinguish between memory size and virtual memory size.
2020-04-25 21:38:11 +01:00
Alastair Poole 40eace5c54 proc: unused variable (macOS). 2020-04-25 14:15:34 +01:00
Alastair Poole cf92bf88de linux: onto macOS next (hopefully). 2020-04-24 03:21:29 +01:00
Alastair Poole d5da445b3f proc: sane memory. 2020-04-24 02:29:27 +01:00
Alastair Poole d844d0084d evisum: Use (SZ - RSS), VSZ and RSS. 2020-04-22 18:28:20 +01:00
Alastair Poole 8499ecc8f4 proc/ui: refactor linux proc and ui shutdown. 2020-04-22 17:14:23 +01:00
Alastair Poole d63b95ef27 bsd: add freebsd shared memory usage (proc). 2020-04-22 15:22:25 +01:00
Alastair Poole 1a79d7ace1 mem: openbsd shared. 2020-04-22 15:08:16 +01:00
Alastair Poole fff7361359 mem: Label size size.
Add shared later. I'm confusing myself here.
2020-04-22 14:57:30 +01:00
Alastair Poole 20c420967a mem: bring this all together (linux). 2020-04-22 14:30:30 +01:00
Alastair Poole 2b03c8ce0b openbsd: cached. 2020-04-22 11:34:22 +01:00
Alastair Poole c7c17e0c9c proc: mem_shared freebsd... 2020-04-22 11:23:00 +01:00
Alastair Poole b9579f8b7b proc: tidy 2020-04-22 11:05:17 +01:00
Alastair Poole 0381b3a6b7 OpenBSD: Command Line Arguments. 2020-04-22 10:52:22 +01:00
Alastair Poole 568822263c proc: FreeBSD et al command arguments. 2020-04-22 10:32:22 +01:00
Alastair Poole f9acb87411 proc: add free api and command line. 2020-04-22 10:10:02 +01:00
Alastair Poole 6dd238dcc1 OpenBSD: Use process argument list. 2020-04-21 21:44:24 +01:00
Alastair Poole 42dd49f3c1 FreeBSD: Get process argument list.
If we don't use this we're restricted to a small command buffer
of 16 or so bytes the kernel will keep in the kp struct.

Fallback to fallback...
2020-04-21 19:50:02 +01:00
Alastair Poole 4a27a4d636 ui: Add Priority 2020-04-18 15:01:00 +01:00
Alastair Poole 702549ed9a rename type. 2020-04-16 22:03:25 +01:00
Alastair Poole a597212e9f everything: Changes. 2020-04-14 18:24:27 +01:00
Alastair Poole d11ea1b84c 0.3.1: Fix OpenBSD Bug. 2020-03-22 13:44:48 +00:00
Alastair Poole 0520fe4623 FreeBSD: Hide kernel processes.
This was an error. Should be P_KPROC not P_SYSTEM
2020-02-18 16:26:10 +00:00
Alastair Poole a74ee1d83b evisum: various improvements.
Better command naming on Linux. Also set data type needs to use
a modifier. So, Ctrl + k, m and g.
2020-02-16 19:34:41 +00:00
Alastair Poole ab629c7612 ui: more changes, formatting mainly. 2020-02-16 02:03:32 +00:00
Alastair Poole bd588341a8 proc: use appropriate buffer size.
As per documentation.
2020-01-03 14:19:42 +00:00
Alastair Poole 0a036c0453 getpagesize: No need to keep calling this funtion. 2019-12-05 13:56:19 +00:00
Alastair Poole 75e1daf45e Changes: Restructure folder. 2019-12-04 22:55:01 +00:00