diff options
author | Chenggang Qin <chenggang.qcg@gmail.com> | 2018-08-16 16:27:14 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-16 16:28:14 -0700 |
commit | aeec7a4c007ac53401e05bf72894a3b998eead95 (patch) | |
tree | 60277fb6794708073c26f14624d0c351b9e83479 /pkg/sentry/fs/sys/BUILD | |
parent | fbd5df9c6fec9119c8036bf5664a27afb35a08ec (diff) |
fs: Support possible and online knobs for cpu
Some linux commands depend on /sys/devices/system/cpu/possible, such
as 'lscpu'.
Add 2 knobs for cpu:
/sys/devices/system/cpu/possible
/sys/devices/system/cpu/online
Both the values are '0 - Kernel.ApplicationCores()-1'.
Change-Id: Iabd8a4e559cbb630ed249686b92c22b4e7120663
PiperOrigin-RevId: 209070163
Diffstat (limited to 'pkg/sentry/fs/sys/BUILD')
-rw-r--r-- | pkg/sentry/fs/sys/BUILD | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/fs/sys/BUILD b/pkg/sentry/fs/sys/BUILD index bc24e980e..5ba23d5da 100644 --- a/pkg/sentry/fs/sys/BUILD +++ b/pkg/sentry/fs/sys/BUILD @@ -6,6 +6,7 @@ go_library( name = "sys", srcs = [ "device.go", + "devices.go", "fs.go", "sys.go", ], @@ -16,6 +17,8 @@ go_library( "//pkg/sentry/device", "//pkg/sentry/fs", "//pkg/sentry/fs/ramfs", + "//pkg/sentry/kernel", "//pkg/sentry/usermem", + "//pkg/syserror", ], ) |