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

mempool: Add mempool tracepoints #26531

Merged
merged 1 commit into from Mar 20, 2023

Commits on Mar 20, 2023

  1. Add mempool tracepoints

    Tracepoints for added, removed, replaced, and rejected transactions.
    
    The removal reason is passed as string instead of a numeric value, since
    the benefits of not having to maintain a redundant enum-string mapping
    seem to outweigh the small cost of string generation.  The reject reason
    is passed as string as well, although here the string does not have to
    be generated but is readily available.
    
    So far, tracepoint PRs typically included two demo scripts: a naive
    bpftrace script to show raw tracepoint data and a bcc script for a more
    refined view. However, as some of the ongoing changes to bpftrace
    introduce a certain degree of unreliability (running some of the
    existing bpftrace scripts was not possible with standard kernels and
    bpftrace packages on latest stable Ubuntu, Debian, and NixOS), this PR
    includes only a single bcc script that fuses the functionality of former
    bpftrace and bcc scripts.
    virtu committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    4b7aec2 View commit details
    Browse the repository at this point in the history