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

Add commit id to info cmd #593

Merged
merged 1 commit into from
Jan 5, 2022
Merged

Add commit id to info cmd #593

merged 1 commit into from
Jan 5, 2022

Conversation

Furisto
Copy link
Collaborator

@Furisto Furisto commented Jan 4, 2022

Version           0.0.1
Commit            f378fd0
Kernel-Release    5.11.0-43-generic
Kernel-Version    #47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021
Architecture      x86_64
Operating System  Ubuntu 20.04.2 LTS
Cores             4
Total Memory      5877
Cgroup setup      hybrid
Cgroup mounts
  blkio           /sys/fs/cgroup/blkio
  cpu             /sys/fs/cgroup/cpu,cpuacct
  cpuacct         /sys/fs/cgroup/cpu,cpuacct
  cpuset          /sys/fs/cgroup/cpuset
  devices         /sys/fs/cgroup/devices
  freezer         /sys/fs/cgroup/freezer
  hugetlb         /sys/fs/cgroup/hugetlb
  memory          /sys/fs/cgroup/memory
  net_cls         /sys/fs/cgroup/net_cls,net_prio
  net_prio        /sys/fs/cgroup/net_cls,net_prio
  perf_event      /sys/fs/cgroup/perf_event
  pids            /sys/fs/cgroup/pids
  unified         /sys/fs/cgroup/unified
CGroup v2 controllers
  cpu             detached
  cpuset          detached
  hugetlb         detached
  io              detached
  memory          detached
  pids            detached
  device          attached
Namespaces        enabled
  mount           enabled
  uts             enabled
  ipc             enabled
  user            enabled
  pid             enabled
  network         enabled
  cgroup          enabled

Also printing out the cgroup info became a bit unwieldy, so I split it into several functions.

@codecov-commenter
Copy link

Codecov Report

Merging #593 (743820f) into main (f378fd0) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #593   +/-   ##
=======================================
  Coverage   70.18%   70.19%           
=======================================
  Files          82       82           
  Lines       10909    10909           
=======================================
+ Hits         7657     7658    +1     
+ Misses       3252     3251    -1     

Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@utam0k utam0k merged commit be20b9e into youki-dev:main Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants