Skip to content

feat: allow building with LiteSVM's register-tracing feature#496

Merged
MicaiahReid merged 1 commit intosolana-foundation:mainfrom
procdump:register-tracing
Feb 2, 2026
Merged

feat: allow building with LiteSVM's register-tracing feature#496
MicaiahReid merged 1 commit intosolana-foundation:mainfrom
procdump:register-tracing

Conversation

@procdump
Copy link
Contributor

Motivation

By building surfpool with LiteSVM's register-tracing feature (initially LiteSVM/litesvm#261, and accompanying LiteSVM/litesvm#278) users can now collect register tracing data from executed VMs. Later this data could be ingested and hence be used for:

  • code coverage statistics
  • debugging
  • CUs analysis
  • security auditing
  • etc..

Example usage

A complete working example is available at https://github.com/LimeChain/simple_anchor_app.git
It demonstrates the full workflow for generating code coverage reports for a Solana Anchor program.
See the repository's README for detailed instructions and explanations of each step.

With such a build surfpool can now collect register tracing from executed VMs.
Later the tracing data could be ingested and hence be used for:
- code coverage statistics
- debugging
- CUs analysis
- security auditing
- etc..
@procdump procdump marked this pull request as ready for review January 21, 2026 11:30
Copy link
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

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

Apologies for the delay on this, @procdump!! Thoughts, @lgalabru?

@procdump, any interest in making a PR to put your example of getting code coverage working in the https://github.com/txtx/surfpool-examples repo?

@MicaiahReid MicaiahReid requested a review from lgalabru January 30, 2026 14:44
@procdump
Copy link
Contributor Author

Apologies for the delay on this, @procdump!! Thoughts, @lgalabru?

@procdump, any interest in making a PR to put your example of getting code coverage working in the https://github.com/txtx/surfpool-examples repo?

@MicaiahReid , thanks for the feedback. I can wrap the example in a PR in the next week. Regards.

@procdump
Copy link
Contributor Author

procdump commented Feb 2, 2026

@MicaiahReid , @lgalabru I've filed a PR adding the code coverage example (txtx/surfpool-examples#6). Please let me know if I need to fix something.

Copy link
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

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

That's awesome, thanks for your contribution @procdump!

@MicaiahReid MicaiahReid changed the title Allow building surfpool with LiteSVM's register-tracing feature. feat: allow building with LiteSVM's register-tracing feature Feb 2, 2026
@MicaiahReid MicaiahReid merged commit 79a351f into solana-foundation:main Feb 2, 2026
4 checks passed
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.

3 participants