-
Notifications
You must be signed in to change notification settings - Fork 129
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
Minimal set of changes required to work with Windows eBPF project #62
Conversation
Is there a public repo for this Windows eBPF effort? It would be nice to have some context on what the downstream user for these changes will be. |
It was pointed out to me by @dthaler that there is a better way to work around some of the issues, which allowed me to reduce the churn even further.
|
Added code to suppress generation of call to fprintf on divide by zero. |
Why not just implement fprintf (e.g., as a no-op)? |
The issue is that fprintf would need to be treated like a helper function. We would need to pass in the target address to ubpf during jit compilation so that it could emit code with the correct fprintf address in the target environment. It seems simpler to just make the jitter emit: |
Added an option to override what function is called when divide by zero occurs. |
@jpsamaroo Our project ebpf-for-windows is now public so you can see how we are using ubpf. It would be great if you would consider the PR now so we can switch to using your repo. |
Thanks for the link! Interesting project 🙂
This isn't my repo, and I'm not currently actively maintaining my own fork since ubpf integration isn't one of my top priorities right now. This would be up to @pchaigno to consider for merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, this LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool!
Allow caller to provide function to invoke on divide by zero and other errors. Signed-off-by: Alan Jowett <alanjo@microsoft.com>
Minimal set of changes required to work with Windows eBPF project
Resolves: #61
Signed-off-by: Alan Jowett alanjo@microsoft.com