diff options
author | Ian Lewis <ianlewis@google.com> | 2019-06-10 23:37:32 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-10 23:38:36 -0700 |
commit | 74e397e39accbeb9fcb5382ce963df55014ae7ce (patch) | |
tree | f8b2b855f581600854f4601e9495701872a727e1 /runsc/main.go | |
parent | 589f36ac4ae31b1f7f35a74d982398e48c28aa31 (diff) |
Add introspection for Linux/AMD64 syscalls
Adds simple introspection for syscall compatibility information to Linux/AMD64.
Syscalls registered in the syscall table now have associated metadata like
name, support level, notes, and URLs to relevant issues.
Syscall information can be exported as a table, JSON, or CSV using the new
'runsc help syscalls' command. Users can use this info to debug and get info
on the compatibility of the version of runsc they are running or to generate
documentation.
PiperOrigin-RevId: 252558304
Diffstat (limited to 'runsc/main.go')
-rw-r--r-- | runsc/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runsc/main.go b/runsc/main.go index 6f8e6e378..a214f6ba0 100644 --- a/runsc/main.go +++ b/runsc/main.go @@ -76,7 +76,9 @@ var ( func main() { // Help and flags commands are generated automatically. - subcommands.Register(subcommands.HelpCommand(), "") + help := cmd.NewHelp(subcommands.DefaultCommander) + help.Register(new(cmd.Syscalls)) + subcommands.Register(help, "") subcommands.Register(subcommands.FlagsCommand(), "") // Register user-facing runsc commands. |