Skip to content

Simplify strace logging in Process#2649

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:strace-in-shim
Jan 9, 2023
Merged

Simplify strace logging in Process#2649
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:strace-in-shim

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Jan 9, 2023

The StraceFmtMode type exists for compatibility with C code (it's better to represent the "off" state as an Option::None), so its use has been replaced with Option<FmtOptions> in the process, host, and manager code. The strace_logging_options: Option<FmtOptions> and strace_file: Option<File> fields have been merged into a single strace_logging: Option<StraceLogging> field.

The `StraceFmtMode` type exists for compatibility with C code, so its use has
been replaced with `Option<FmtOptions>` in the process, host, and manager code.
The `strace_logging_options: Option<FmtOptions>` and `strace_file:
Option<File>` fields have been merged into a single `strace_logging:
Option<StraceLogging>` field.
@stevenengler stevenengler self-assigned this Jan 9, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Jan 9, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 9, 2023

Codecov Report

Base: 67.88% // Head: 67.91% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (db5ee11) compared to base (920e066).
Patch coverage: 76.85% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2649      +/-   ##
==========================================
+ Coverage   67.88%   67.91%   +0.02%     
==========================================
  Files         201      202       +1     
  Lines       29852    29920      +68     
  Branches     5820     5832      +12     
==========================================
+ Hits        20266    20319      +53     
- Misses       4970     4980      +10     
- Partials     4616     4621       +5     
Flag Coverage Δ
tests 67.91% <76.85%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
src/lib/shadow-shim-helper-rs/src/lib.rs 75.00% <ø> (ø)
src/main/host/syscall/formatter.rs 78.26% <66.66%> (-1.56%) ⬇️
src/lib/shim/shim_syscall.c 78.91% <68.18%> (-1.89%) ⬇️
src/lib/shim/shim_sys.c 73.45% <70.37%> (-0.97%) ⬇️
src/main/core/support/configuration.rs 75.97% <75.00%> (+0.63%) ⬆️
src/main/host/process.rs 83.72% <79.16%> (-0.23%) ⬇️
src/lib/shadow-shim-helper-rs/src/option.rs 81.81% <81.81%> (ø)
src/lib/shadow-shim-helper-rs/src/shim_shmem.rs 76.82% <100.00%> (+1.90%) ⬆️
src/main/core/manager.rs 63.63% <100.00%> (+0.22%) ⬆️
src/main/host/host.rs 77.59% <100.00%> (+0.17%) ⬆️
... and 16 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.

@stevenengler stevenengler merged commit e81eab7 into shadow:main Jan 9, 2023
@stevenengler stevenengler deleted the strace-in-shim branch January 9, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants