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 binary file output support #2

Closed
wants to merge 2 commits into from

Conversation

Starnox
Copy link

@Starnox Starnox commented Mar 26, 2023

Support for binary file coverage information, based on #1

  • Additional configuration options to accommodate the feature.
  • Patch for the embedded-gcov library that fixes a minor bug in the way divisions were made
  • Addition of helper scripts to process the extracted information
  • Modified README.md

@Starnox Starnox added the enhancement New feature or request label Mar 26, 2023
@Starnox Starnox mentioned this pull request Mar 26, 2023
@razvand razvand requested review from michpappas and removed request for razvand March 27, 2023 12:06
Port of embedded-gcov[1] for Unikraft.

[1] https://github.com/nasa-jpl/embedded-gcov

Signed-off-by: Michalis Pappas <[email protected]>
Copy link
Member

@michpappas michpappas left a comment

Choose a reason for hiding this comment

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

Nice! 😎 I have left inline comments on some minor issues.

One more thing that could be imporoved is the structure of the README with a brief summary of the process before elaborating on the individual output types, ie something along the lines of:

  1. Patch code to add __gcov_exit()
  2. Select output type and build
  3. Run script (a brief description of what the script does and sample output can be added here)

Also I noticed some trailing whitespace here and there. You can spot them with git show.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
patches/0002-Fix-and-update-byte-count.patch Outdated Show resolved Hide resolved
scripts/gcov_process_file.sh Outdated Show resolved Hide resolved
@Starnox Starnox requested a review from michpappas April 6, 2023 15:31
Starnox added a commit to Starnox/unikraft-lib-embedded-gcov that referenced this pull request Apr 6, 2023
- Improved README
- Added 'used' attribute in gcov patch

Signed-off-by: Eduard-Florin Mihailescu <[email protected]>
scripts/gcov_process.sh Outdated Show resolved Hide resolved
Copy link
Member

@michpappas michpappas left a comment

Choose a reason for hiding this comment

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

@Starnox thanks for updating this PR. Besides the rest of the comments, please:

  1. Rebase on top of Introduce lib-embedded-gcov #1. If we can get it merged before the next iteration of this PR, even better (you are a reviewer and @razvand is the approver).
  2. Squash 8f0bc5f into d6e5d23.

Thanks!

@Starnox Starnox force-pushed the add-binary-file-output branch 2 times, most recently from edfcaf8 to 2c3a9b6 Compare April 11, 2023 06:22
@Starnox Starnox requested a review from michpappas April 11, 2023 09:25
- Added configuration options to accommodate the feature.
- Added patch for the embedded-gcov library to resolve division bug
- Included helper script for processing extracted information
- Modified README

Signed-off-by: Eduard-Florin Mihailescu <[email protected]>
@razvand razvand added this to the v0.14.0 (Prometheus) milestone May 12, 2023
@Starnox Starnox closed this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

3 participants