Skip to content

Updated syscall handlers to use rust descriptor lookup#1655

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:update-rust-syscalls
Sep 21, 2021
Merged

Updated syscall handlers to use rust descriptor lookup#1655
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:update-rust-syscalls

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Sep 20, 2021

The C close() syscall handler is also now redundant, so it was removed.

The helper functions also must take a cloned PosixFile (an enum containing an Arc) instead of a &Descriptor since a &Descriptor holds an immutable reference to the Process for the lifetime of the &Descriptor, and cloning the PosixFile allows us to break that reference.

@stevenengler stevenengler added the Type: Enhancement New functionality or improved design label Sep 20, 2021
@stevenengler stevenengler self-assigned this Sep 20, 2021
@github-actions github-actions bot added Component: Build Build/install tools and dependencies Component: Main Composing the core Shadow executable labels Sep 20, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 20, 2021

Codecov Report

Merging #1655 (0eb7b02) into main (2e176e4) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1655      +/-   ##
==========================================
- Coverage   56.33%   56.32%   -0.01%     
==========================================
  Files         140      140              
  Lines       18557    18546      -11     
  Branches     4471     4470       -1     
==========================================
- Hits        10454    10446       -8     
+ Misses       5389     5383       -6     
- Partials     2714     2717       +3     
Flag Coverage Δ
tests 56.32% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
src/main/host/descriptor/descriptor.c 73.93% <0.00%> (-0.76%) ⬇️
src/main/host/syscall/unistd.c 56.87% <ø> (-1.18%) ⬇️
src/test/futex/test_futex.c 64.21% <0.00%> (-1.06%) ⬇️
src/main/utility/priority_queue.c 80.58% <0.00%> (-0.98%) ⬇️
src/main/host/descriptor/epoll.c 77.52% <0.00%> (-0.33%) ⬇️
src/main/host/network_interface.c 72.46% <0.00%> (-0.29%) ⬇️
src/main/routing/packet.c 70.08% <0.00%> (-0.29%) ⬇️
src/lib/tsc/tsc_test.c 30.37% <0.00%> (ø)
src/main/host/syscall/socket.c 78.78% <0.00%> (+0.14%) ⬆️
src/main/host/descriptor/file.c 29.34% <0.00%> (+0.18%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e176e4...0eb7b02. Read the comment docs.

@stevenengler stevenengler marked this pull request as ready for review September 21, 2021 20:03
@github-actions github-actions bot removed the Component: Build Build/install tools and dependencies label Sep 21, 2021
The C close() syscall handler is also now redundant, so it was
removed.
@stevenengler stevenengler merged commit c9863cb into shadow:main Sep 21, 2021
@stevenengler stevenengler deleted the update-rust-syscalls branch September 21, 2021 21:28
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 Type: Enhancement New functionality or improved design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants