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

Refactor - Use builtin function interface from rbpf #31221

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Apr 17, 2023

Problem

Built-ins (ProcessInstructionWithContext) and syscalls (BuiltInFunction) use two different function interfaces.

Summary of Changes

In order to unify them this PR replaces the interface of built-in by the one used for RBPF syscalls.
This does not allow access of built-ins as syscalls yet, it is merely a preparation step.

@Lichtso Lichtso force-pushed the refactor/use_builtin_function_interface_from_rbpf branch 21 times, most recently from 568e3ec to e6f8bc6 Compare April 18, 2023 14:00
@Lichtso Lichtso force-pushed the refactor/use_builtin_function_interface_from_rbpf branch from e6f8bc6 to a9dbada Compare April 19, 2023 16:41
@Lichtso Lichtso force-pushed the refactor/use_builtin_function_interface_from_rbpf branch from a9dbada to b98e400 Compare April 19, 2023 17:48
@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #31221 (b98e400) into master (edef599) will increase coverage by 0.0%.
The diff coverage is 63.1%.

@@           Coverage Diff           @@
##           master   #31221   +/-   ##
=======================================
  Coverage    81.5%    81.5%           
=======================================
  Files         731      732    +1     
  Lines      206979   206977    -2     
=======================================
+ Hits       168757   168780   +23     
+ Misses      38222    38197   -25     

Copy link
Contributor

@alessandrod alessandrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this with the following comment: ugly but harmless 😋

@Lichtso Lichtso merged commit e5490b8 into solana-labs:master Apr 21, 2023
@Lichtso Lichtso deleted the refactor/use_builtin_function_interface_from_rbpf branch April 21, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants