Skip to content

Simplify syscall logging#2624

Merged
stevenengler merged 6 commits intoshadow:mainfrom
stevenengler:extended-strace-logging
Dec 22, 2022
Merged

Simplify syscall logging#2624
stevenengler merged 6 commits intoshadow:mainfrom
stevenengler:extended-strace-logging

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

The original version used extra traits to make it simpler to support new types in the logger, but these extra traits have made the logging code much more complicated, and this complexity isn't worth it. This PR also moves some code around into different modules, and changes the log_syscall macro to generate code using the quote library rather than parsing it from a string, since Shadow already depends on quote.

@stevenengler stevenengler self-assigned this Dec 20, 2022
@github-actions github-actions bot added Component: Build Build/install tools and dependencies Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable labels Dec 20, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 20, 2022

Codecov Report

Base: 67.45% // Head: 67.46% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (08e0850) compared to base (7e029bd).
Patch coverage: 74.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2624      +/-   ##
==========================================
+ Coverage   67.45%   67.46%   +0.01%     
==========================================
  Files         200      201       +1     
  Lines       29523    29502      -21     
  Branches     5791     5789       -2     
==========================================
- Hits        19914    19904      -10     
+ Misses       5032     5020      -12     
- Partials     4577     4578       +1     
Flag Coverage Δ
tests 67.46% <74.50%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
src/main/core/support/configuration.rs 77.00% <ø> (ø)
src/main/host/process.rs 85.08% <ø> (+0.27%) ⬆️
src/main/host/syscall/mod.rs 100.00% <ø> (ø)
src/main/host/syscall_types.rs 74.52% <0.00%> (-4.48%) ⬇️
src/main/host/syscall/type_formatting.rs 77.50% <77.50%> (ø)
src/main/host/syscall/formatter.rs 80.55% <80.55%> (ø)
src/main/host/syscall/handler/random.rs 50.00% <0.00%> (-4.55%) ⬇️
src/main/core/scheduler/pools/bounded.rs 74.50% <0.00%> (-3.14%) ⬇️
src/main/host/syscall/handler/ioctl.rs 40.00% <0.00%> (-2.86%) ⬇️
src/main/host/memory_manager/memory_copier.rs 73.33% <0.00%> (-2.23%) ⬇️
... and 8 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 force-pushed the extended-strace-logging branch from 964d298 to 08e0850 Compare December 21, 2022 23:08
@stevenengler stevenengler merged commit 038fa65 into shadow:main Dec 22, 2022
@stevenengler stevenengler deleted the extended-strace-logging branch December 22, 2022 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies 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