Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement function cgroupid(path) -> cgroup id #170

Merged
merged 4 commits into from Oct 16, 2018

Commits on Oct 16, 2018

  1. Add helper macros for wrapping annoying C types

    We will wrap the file_handle struct in the next commit. The struct has
    a flexible array member, which is not supported by C++. Compiler may
    complain about using it when allocated on stack, even indirectly as a
    member of a struct. I'm not sure if using this kind of types is even a
    defined behavior…
    krnowak committed Oct 16, 2018
    Configuration menu
    Copy the full SHA
    678cd10 View commit details
    Browse the repository at this point in the history
  2. Implement function cgroupid()

    alban authored and krnowak committed Oct 16, 2018
    Configuration menu
    Copy the full SHA
    64abee2 View commit details
    Browse the repository at this point in the history
  3. Support resolving cgroupid only if name_to_handle_at exists

    Currently used image of alpine has a version of musl libc that does
    not have name_to_handle_at function that is required to resolve the
    cgroup id. In such case we just use an implementation that says that
    resolving cgroupid is not supported.
    krnowak committed Oct 16, 2018
    Configuration menu
    Copy the full SHA
    5d5afa7 View commit details
    Browse the repository at this point in the history
  4. Update reference documentation

    Mention the `cgroup` variable and the `cgroupid` function alongside an
    example that uses them both.
    krnowak committed Oct 16, 2018
    Configuration menu
    Copy the full SHA
    5db00d7 View commit details
    Browse the repository at this point in the history