-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add additional traits and methods to DeprecatedSyscallSelector #24
Conversation
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.
What do you think about using the strum
crate for this? We could then just use its derives instead of writing this code.
I thought about it to be honest, even started the implementation. I then figured that maybe it is not really worth it the additional dependency to only do this for one enum. I'm not strong on that opinion though, so if you like this better let me know and I can change it. One general thing though - I am actually thinking about refactoring this enum completely, as it's not really fit for purpose at the moment. I have vague plans to split it into syscalls and libfuncs, which would allow to get rid of fromstr and tostr traits. But this work is not yet planned completely, for now I hold it in an issue in the profiler's triage. Will open an issue/PR here when it's needed/planned. |
We are already dragging a lot of dependencies through |
10993c1
to
11edc90
Compare
Sure, makes sense. Made the change and tested it against the profiler code, everything seems to be working 👍 |
11edc90
to
bfbe416
Compare
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.
Don't want to block you 😅. Please only address my comment
28a5c94
to
fa2f197
Compare
Implements #10
Introduced changes
Checklist
CHANGELOG.md