1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +00:00

Base: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:52:09 +03:00 committed by Andrew Kaster
parent 9d1ba0e6ad
commit 1c5e09f789
4 changed files with 5 additions and 5 deletions

View file

@ -28,12 +28,12 @@ If no *path* argument is provided stdin is used.
```sh
# Pretty-print stdin
$ cat /proc/all | json
$ cat /sys/kernel/processes | json
# Pretty-print a file
$ json json-data.json
# Pretty-print a file with two spaces per indent
$ json -i 2 json-data.json
# Query data from JSON
$ json -q 1 .config/CommonLocations.json
$ cat /proc/all | json -q processes
$ cat /sys/kernel/processes | json -q processes
```

View file

@ -11,7 +11,7 @@ $ profile [-p PID] [-a] [-e] [-d] [-f] [-w] [-c command] [-t event_type]
## Options:
* `-p PID`: Target PID
* `-a`: Profile all processes (super-user only), result at /proc/profile
* `-a`: Profile all processes (super-user only), result at /sys/kernel/profile
* `-e`: Enable
* `-d`: Disable
* `-f`: Free the profiling buffer for the associated process(es).