-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
procstat: Enable procstat to access c18n statistics
Co-authored-by: Dapeng Gao <[email protected]>
- Loading branch information
Showing
21 changed files
with
304 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,8 @@ Substring commands are accepted. | |
Display command line arguments for the process. | ||
.Pp | ||
Substring commands are accepted. | ||
.It Ar c18n | ||
Display CHERI compartmentalization information about a process. | ||
.It Ar cheri | ||
Display CHERI-specific information about the process. | ||
If the | ||
|
@@ -297,6 +299,29 @@ command | |
.It ARGS | ||
command line arguments (if available) | ||
.El | ||
.Ss Compartmentalization information | ||
Display CHERI compartmentalization information for a process (see | ||
.Xr c18n 7 ) : | ||
.Pp | ||
.Bl -tag -width TRMPTBL -compact | ||
.It PID | ||
process ID | ||
.It COMM | ||
command | ||
.It COMP | ||
number of compartments | ||
.It STKS | ||
number of compartment stacks | ||
.It TRMPS | ||
number of initialized trampolines | ||
.It TRPGS | ||
number of pages mapped for trampolines | ||
.It MEM | ||
total size of | ||
.Xr c18n 7 | ||
data structures (including stack lookup tables, trampoline lookup tables, etc., | ||
but excluding execution stacks and trampolines which have dedicated counters) | ||
.El | ||
.Ss CHERI information | ||
Display the process ID, command, and CHERI-specific information: | ||
.Pp | ||
|
@@ -313,6 +338,10 @@ quarantining status | |
in-kernel revoker state | ||
.It EPOCH | ||
in-kernel revoker epoch | ||
.It C18N | ||
number of | ||
.Xr c18n 7 | ||
compartments | ||
.El | ||
.Pp | ||
The following values indicate the support for CHERI in the process ABI: | ||
|
@@ -915,6 +944,7 @@ procstat: procstat_getprocs() | |
.Xr sctp 4 , | ||
.Xr tcp 4 , | ||
.Xr udp 4 , | ||
.Xr c18n 7 , | ||
.Xr stack 9 | ||
.Sh AUTHORS | ||
.An Robert N M Watson Aq Mt [email protected] . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.