https://github.com/jonrohan/kernelstate
You will write a program to use the /proc mechanism to inspect various kernel values that reflect the machine’s load average, process resource utilization, and so on. Please compile and run it on Linux.
https://github.com/jonrohan/kernelstate
Last synced: 7 months ago
JSON representation
You will write a program to use the /proc mechanism to inspect various kernel values that reflect the machine’s load average, process resource utilization, and so on. Please compile and run it on Linux.
- Host: GitHub
- URL: https://github.com/jonrohan/kernelstate
- Owner: jonrohan
- Created: 2012-09-15T20:37:09.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-09-16T03:10:34.000Z (almost 14 years ago)
- Last Synced: 2025-01-14T03:42:07.843Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Inspecting Linux Kernel State
## Description of logic:
The program tells the user about various states of the emulated Linux Kernel State. The user can specify whether they want the short format which only gives a little information, or the long format which gives more information on the kernel state. To accomplish this I created a function for each aspect of the project and in the main method had a switch case to check the user input. Once I found the location of all the important files, I just used simple string parsing to obtain the correct info.