Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the documentation, build system, and testing workflow for the Linux Process Information Kernel Module project. It adds a dual BSD/GPL license, enhances the Makefile and documentation to support function-level unit testing, and updates the QEMU testing scripts and quick reference guide for better usability and clarity. The changes collectively make the project easier to build, test, and understand, both for kernel and user-space components.
Licensing:
LICENSEfile specifying a dual BSD/GPL license, giving users the choice between BSD and GPLv2 terms.Testing and Build System Enhancements:
Makefileto introduce aunittarget for building and running function-level unit tests for both kernel and user-space helper functions, without requiring a kernel. [1] [2]README.md, including test sources and helper headers. [1] [2]make unitbefore kernel or QEMU testing. [1] [2]Documentation Improvements:
README.mdwith details about helper headers, user program modes, environment overrides, and updated function names for accuracy. [1] [2]scripts/README.md) with a clearer overview, step-by-step workflow, and additional resources. [1] [2] [3] [4] [5]Developer Experience:
scripts/quick-reference.shscript to provide a comprehensive quick reference for building, testing, and troubleshooting, including new targets and project structure. [1] [2] [3] [4]Code Quality:
compute_usage_permyriad()helper function for CPU usage calculation, improving code clarity and testability. [1] [2]