/backend.ai-hook

Hooking library-level functions for Backend.AI kernel containers

Primary LanguageC++GNU Lesser General Public License v3.0LGPL-3.0

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