Skip to content

Remove C Process#2665

Merged
sporksmith merged 7 commits intoshadow:mainfrom
sporksmith:process-changeover
Jan 18, 2023
Merged

Remove C Process#2665
sporksmith merged 7 commits intoshadow:mainfrom
sporksmith:process-changeover

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

No description provided.

@sporksmith sporksmith self-assigned this Jan 13, 2023
@github-actions github-actions bot added Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable labels Jan 13, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2023

Codecov Report

Base: 67.80% // Head: 68.19% // Increases project coverage by +0.38% 🎉

Coverage data is based on head (70e6d89) compared to base (b6e410e).
Patch coverage: 81.44% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2665      +/-   ##
==========================================
+ Coverage   67.80%   68.19%   +0.38%     
==========================================
  Files         202      202              
  Lines       30304    30315      +11     
  Branches     5920     5919       -1     
==========================================
+ Hits        20549    20673     +124     
+ Misses       5087     4964     -123     
- Partials     4668     4678      +10     
Flag Coverage Δ
tests 68.19% <81.44%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/core/worker.rs 82.03% <ø> (+2.76%) ⬆️
src/main/host/process.rs 77.75% <71.18%> (-2.04%) ⬇️
src/main/host/host.rs 80.67% <93.33%> (-0.15%) ⬇️
src/lib/shadow-shim-helper-rs/src/rootedcell/rc.rs 95.23% <100.00%> (+0.59%) ⬆️
src/main/host/context.rs 61.29% <100.00%> (ø)
src/main/host/syscall/formatter.rs 78.63% <100.00%> (ø)
src/main/core/logger/shadow_logger.rs 69.61% <0.00%> (-2.77%) ⬇️
src/lib/shmem/src/scmutex.rs 87.05% <0.00%> (-2.36%) ⬇️
src/main/host/syscall/handler/socket.rs 67.79% <0.00%> (-1.28%) ⬇️
... and 18 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sporksmith sporksmith marked this pull request as ready for review January 17, 2023 22:23
@github-actions github-actions bot removed the Component: Libraries Support functions like LD_PRELOAD and logging label Jan 17, 2023
Since the C Process only contained a pointer to the RustProcess, we can
now unify the two.

For compatibility we currently give C a `* mut RustProcess` instead of a
`* const RustProcess`. This is fragile, but sound as long as we never
actually dereference to a `&mut RustProcess`.
This also forces us to add some explicit includes to other files, which
were previously getting them transitively from process.h
@sporksmith sporksmith enabled auto-merge January 18, 2023 21:03
@github-actions github-actions bot added the Component: Libraries Support functions like LD_PRELOAD and logging label Jan 18, 2023
@sporksmith sporksmith merged commit c886d81 into shadow:main Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants