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

VECs Need To Fully Wrap File IO #69

Open
insertinterestingnamehere opened this issue May 11, 2021 · 2 comments
Open

VECs Need To Fully Wrap File IO #69

insertinterestingnamehere opened this issue May 11, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request VECs Related to Virtual Execution Contexts

Comments

@insertinterestingnamehere
Copy link
Member

Currently Galois gets info about hardware topology from /proc/cpuinfo. To intercept those calls fully we need to interpose on file IO. There are several related functions in libc to override and (IIRC, from discussion with @hfingler) C++ potentially has its own routines with their own syscalls, so we may need to shim those as well. The key idea is to have the ability to fake /proc/cpuinfo (and any other similar files?) to increase the robustness of the VEC virtual layer.

@insertinterestingnamehere
Copy link
Member Author

Worth noting: if my theory about the context library not overriding glibc symbols in #68 is correct that bug will hold this up. Fortunately it's fixable.

@hfingler
Copy link
Contributor

That's what's happening at this moment. This feature is implemented on my branch but not all VECs have their open overrode. This way the first VEC gets the fake cpuinfo, the rest don't.

@insertinterestingnamehere insertinterestingnamehere added the VECs Related to Virtual Execution Contexts label May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request VECs Related to Virtual Execution Contexts
Projects
None yet
Development

No branches or pull requests

2 participants