estodi
1dafe8db4c
pmap: implemented more-extended and most-extended options ( #415 )
...
* pmap: implemented more-extended and most-extended options
* fixed lint errors
* fixed test_pmap lint error
* Update tests/by-util/test_pmap.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
* Update tests/by-util/test_pmap.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
* fixed typo
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2025-05-14 15:20:02 +02:00
Tuomas Tynkkynen
81d0d37727
pgrep/pkill/pidwait: Support --cgroup option
2025-05-08 23:23:28 +03:00
Bluemangoo
389a9f6dd2
vmstat: more tests
2025-04-16 23:41:23 +08:00
Bluemangoo
57cf05d19e
vmstat: add tests
2025-04-14 22:57:30 +08:00
Sylvestre Ledru
116c9e8786
Merge pull request #394 from sylvestre/uutests
...
use uutests
2025-04-12 13:48:15 +02:00
Sylvestre Ledru
fee00ea12c
Merge pull request #384 from Bluemangoo/feature/w-header
...
w: add uptime header
2025-04-12 00:00:43 +02:00
Sylvestre Ledru
e9ea7a5dc0
use uutests
2025-04-11 23:59:07 +02:00
Sylvestre Ledru
65bab88c42
Merge pull request #385 from dezgeg/pidof-c
...
pidof: Support --check-root option
2025-04-11 23:36:11 +02:00
Etienne Wodey
20d7f2907b
watch: handle WATCH_INTERVAL
2025-04-04 13:19:37 +02:00
Daniel Hofstetter
eded605839
clippy: fix warnings from
...
doc_overindented_list_items lint
2025-04-03 16:54:05 +02:00
Tuomas Tynkkynen
e8f49f5558
pidof: Support --check-root option
2025-04-02 22:41:08 +03:00
Bluemangoo
3b6b7fdad4
w: add uptime header
2025-04-02 16:32:27 +00:00
Daniel Hofstetter
1f72da9f12
Merge pull request #373 from dezgeg/pidof-x
...
pidof: Implement '-x' flag
2025-04-02 15:20:48 +02:00
Daniel Hofstetter
f3d07da42f
Merge pull request #367 from Bluemangoo/feature/vmstat
...
vmstat: add basic implementation of `vmstat`
2025-03-31 16:58:00 +02:00
estodi
35dad8d767
pmap: fixed to hide the header when permission is denied ( #378 )
...
* pmap: fixed to hide the header when permission is denied
* pmap: fixed lint error
2025-03-30 18:39:07 +02:00
estodi
f635788852
pmap: implement --extended (#368 )
...
* add inode in MapLine
inode information is used by extended options
* pmap: implement extended option
* formatted files
* updated test_pmap.rs
* fixed lint errors
* fixed missing fields and typo
* fixed parse_smap_entries algorithm
removed a redundant field
* pmap: fixed `parse_smap_entries` algorithm
to improve its endurance against platform variations
* pmap: fixed typo
* Update src/uu/pmap/src/smaps_format_parser.rs
Incorporate the suggested change
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com >
2025-03-29 15:09:38 +01:00
Bluemangoo
b5f44f3fa1
vmstat: add simple tests
2025-03-28 16:14:09 +00:00
Tuomas Tynkkynen
191b10a95e
pidof: Implement '-x' flag
2025-03-27 20:12:40 +02:00
Krysztal Huang
1d83d7a8a3
tload: Basic implementation of tload ( #362 )
...
* tload: add basic tui layout of modern look
* tload: set x-axis bound from 0 to the width of terminal
* tload: fix mismatched returning type
* tload: add `#[allow(clippy::cognitive_complexity)]`
* tload: add by-utils test
* tload: tweaks for max height of chart
* tload: bump version of `ratatui` from `0.28` to `0.29`
* tload: fix typo
* tload: set exit code to 130
* tload: fix typo
* tload: add license header for `tui.rs`
2025-03-25 16:58:35 +01:00
Tuomas Tynkkynen
9fb6aa3be5
pidof: Implement --with-workers
...
Lots of tests rely on finding kthreadd thus -w flag needs to be added
to them.
2025-03-24 18:46:17 +02:00
Krysztal Huang
76fb2a55d7
Merge pull request #360 from dezgeg/require-handler-fixes
...
pgrep/pkill/pidwait: --require-handler fixes
2025-03-24 10:16:20 +08:00
Tuomas Tynkkynen
eb0871abc7
process_matcher: Allow lone --require-handler option
...
Make it possible to run `pgrep --require-handler` without any other
matcher arguments.
2025-03-23 21:21:50 +02:00
Tuomas Tynkkynen
11584c8f53
process_matcher: Fix off-by-one in signal mask
...
Apparently the signal masks in /proc/status are off-by-one, ie. bit 0
represents signal 1. In original pgrep signal 0 results in matching
signal 64 so replicate this behaviour also.
2025-03-23 21:16:55 +02:00
Daniel Hofstetter
5ca17df66a
pidof: rename test & remove target_os cfg
2025-03-21 10:58:07 +01:00
Daniel Hofstetter
05fcfdcaef
pidof: don't require program name as arg
2025-03-21 10:55:59 +01:00