summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pgrep.cpp
AgeCommit message (Collapse)Author
2023-05-31pgrep: Add `-x` option to only select exact matchesTim Ledbetter
2023-05-31pgrep: Add `-U` option to filter matches by UID or login nameTim Ledbetter
2023-05-31pgrep: Add `-l` option to list the process name as well as its pidTim Ledbetter
2023-05-31pgrep: Add `-c` option to show the number of matchesTim Ledbetter
2023-05-31pgrep: Add `--ignore-case` as an alias for the `-i` optionTim Ledbetter
2023-05-31pgrep: Return 1 rather than 0 if there are no matchesTim Ledbetter
This matches the behavior of `pgrep` on Linux.
2023-05-16pgrep: Add -d option to specify a pid delimiterTim Ledbetter
This is useful for commands which expect a comma-separated list of pids.
2023-03-01LibCore+Everywhere: Remove ArgsParser::add*(char const*&)Ali Mohammad Pur
This is not guaranteed to always work correctly as ArgsParser deals in StringViews and might have a non-properly-null-terminated string as a value. As a bonus, using StringView (and DeprecatedString where necessary) leads to nicer looking code too :^)
2022-12-10LibCore: Use `Core::Stream` for `ProcessStatisticsReader`Tim Schumacher
2022-10-25Utilities: Use new global variables at /sys/kernel/ directoryLiav A
2022-02-10pgrep: Port to LibMainRiccardo Arena
Use unveil to allow access only to required paths. Switch to new pledge format.
2021-11-08LibRegex: Don't push LibRegex's "Error" into the global namespaceAndreas Kling
2021-07-18Everywhere: Improve CPU usage calculationTom
As threads come and go, we can't simply account for how many time slices the threads at any given point may have been using. We need to also account for threads that have since disappeared. This means we also need to track how many time slices we have expired globally. However, because this doesn't account for context switches outside of the system timer tick values may still be under-reported. To solve this we will need to track more accurate time information on each context switch. This also fixes top's cpu usage calculation which was still based on the number of context switches. Fixes #6473
2021-07-04Userland: Add pgrepAziz Berkay Yesilyurt