A user-level hooker to override library functions inside Backend.AI's kernel containers
- Override
sysconf()
to expose the number of actually schedulable CPU cores based on sysfs cgroup CPU set information. - Override
scanf()
to get the user keyboard input via the local Backend.AI Agent.
For musl-compatible build using Alpine Linux, run:
./build.sh alpine
For glibc-compatible build using Debian Linux, run:
./build.sh ubuntu
./test.sh alpine
./test.sh ubuntu