Skip to content

Hooking library-level functions for Backend.AI kernel containers

License

Notifications You must be signed in to change notification settings

lablup/backend.ai-hook

Repository files navigation

Backend.AI Hook

A user-level hooker to override library functions inside Backend.AI's kernel containers

Features

  • 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.

How to build

For musl-compatible build using Alpine Linux, run:

./build.sh alpine

For glibc-compatible build using Debian Linux, run:

./build.sh ubuntu

How to run tests

./test.sh alpine
./test.sh ubuntu

About

Hooking library-level functions for Backend.AI kernel containers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published