mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
Base: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
9d1ba0e6ad
commit
1c5e09f789
4 changed files with 5 additions and 5 deletions
|
@ -28,12 +28,12 @@ If no *path* argument is provided stdin is used.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Pretty-print stdin
|
# Pretty-print stdin
|
||||||
$ cat /proc/all | json
|
$ cat /sys/kernel/processes | json
|
||||||
# Pretty-print a file
|
# Pretty-print a file
|
||||||
$ json json-data.json
|
$ json json-data.json
|
||||||
# Pretty-print a file with two spaces per indent
|
# Pretty-print a file with two spaces per indent
|
||||||
$ json -i 2 json-data.json
|
$ json -i 2 json-data.json
|
||||||
# Query data from JSON
|
# Query data from JSON
|
||||||
$ json -q 1 .config/CommonLocations.json
|
$ json -q 1 .config/CommonLocations.json
|
||||||
$ cat /proc/all | json -q processes
|
$ cat /sys/kernel/processes | json -q processes
|
||||||
```
|
```
|
||||||
|
|
|
@ -11,7 +11,7 @@ $ profile [-p PID] [-a] [-e] [-d] [-f] [-w] [-c command] [-t event_type]
|
||||||
## Options:
|
## Options:
|
||||||
|
|
||||||
* `-p PID`: Target PID
|
* `-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
|
* `-e`: Enable
|
||||||
* `-d`: Disable
|
* `-d`: Disable
|
||||||
* `-f`: Free the profiling buffer for the associated process(es).
|
* `-f`: Free the profiling buffer for the associated process(es).
|
||||||
|
|
|
@ -78,7 +78,7 @@ has set up before booting the Kernel, don't initialize any driver.
|
||||||
|
|
||||||
* **`nvme_poll`** - This parameter configures the NVMe drive to use polling instead of interrupt driven completion.
|
* **`nvme_poll`** - This parameter configures the NVMe drive to use polling instead of interrupt driven completion.
|
||||||
|
|
||||||
* **`system_mode`** - This parameter is not interpreted by the Kernel, and is made available at `/proc/system_mode`. SystemServer uses it to select the set of services that should be started. Common values are:
|
* **`system_mode`** - This parameter is not interpreted by the Kernel, and is made available at `/sys/kernel/system_mode`. SystemServer uses it to select the set of services that should be started. Common values are:
|
||||||
- **`graphical`** (default) - Boots the system in the normal graphical mode.
|
- **`graphical`** (default) - Boots the system in the normal graphical mode.
|
||||||
- **`self-test`** - Boots the system in self-test, validation mode.
|
- **`self-test`** - Boots the system in self-test, validation mode.
|
||||||
- **`text`** - Boots the system in text only mode. (You may need to also set **`graphics_subsystem_mode=off`**.)
|
- **`text`** - Boots the system in text only mode. (You may need to also set **`graphics_subsystem_mode=off`**.)
|
||||||
|
|
|
@ -37,7 +37,7 @@ Additionally, the name `defaults` is accepted and ignored.
|
||||||
|
|
||||||
* `/etc/fstab` - read by `mount -a` on startup to find out which filesystems to mount.
|
* `/etc/fstab` - read by `mount -a` on startup to find out which filesystems to mount.
|
||||||
* `/etc/fstab.d` - directory with drop-in additions to the normal `fstab` file, also read by `mount -a`.
|
* `/etc/fstab.d` - directory with drop-in additions to the normal `fstab` file, also read by `mount -a`.
|
||||||
* `/proc/df` - read by `mount` to get information about mounted filesystems.
|
* `/sys/kernel/df` - read by `mount` to get information about mounted filesystems.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue