Show HN: bpfquery – experimenting with compiling SQL to bpf(trace)

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. bpfquery

    Zack's experimental tool for querying BPF with SQL.

    Hello! The last few weeks I've been experimenting with compiling sql queries to bpftrace programs and then working with the results. bpfquery.com is the result of that, source available at https://github.com/zmaril/bpfquery. It's a very minimal sql to bpftrace compiler that lets you explore what's going on with your systems. It implements queries, expressions, and filters/wheres/predicates, and has a streaming pivot table interface built on https://perspective.finos.org. I am still figuring out how to do windows, aggregations and joins though, but the pivot table interface actually lets you get surprisingly far. I hope you enjoy it!

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. perspective

    A data visualization and analytics component, especially well-suited for large and/or streaming datasets.

    Hello! The last few weeks I've been experimenting with compiling sql queries to bpftrace programs and then working with the results. bpfquery.com is the result of that, source available at https://github.com/zmaril/bpfquery. It's a very minimal sql to bpftrace compiler that lets you explore what's going on with your systems. It implements queries, expressions, and filters/wheres/predicates, and has a streaming pivot table interface built on https://perspective.finos.org. I am still figuring out how to do windows, aggregations and joins though, but the pivot table interface actually lets you get surprisingly far. I hope you enjoy it!

  4. bpftrace

    High-level tracing language for Linux

    > --I ran ctags across the linux kernel source code, pulled out all the signatures and then reference the signature when compiling the query, so you don't have to do a bunch of casts in the query.

    note you don't need the casts if you use kfuncs instead, which also let you reference arguments by name (from https://github.com/bpftrace/bpftrace/blob/master/man/adoc/bp... ):

    ```

  5. hancock

    A tool for finding and collating all of the function signatures in a git repository, particularly for the linux kernel. (by zmaril)

    oh sick! thank you for letting me know. I will look into using this more for sure. I am curious, do you know if there is a way to access the arguments for kfuncs ahead of time? does the kernel provide this information somehow at runtime, or is it all still implicit?

    Also, you might also enjoy https://github.com/zmaril/hancock which is some of the code I've been using to run ctags across the versions of the kernel.

  6. wasm-bpf-rs

    A WebAssembly eBPF runtime based on wasmtime in rust

    https://github.com/eunomia-bpf/wasm-bpf#how-it-works

    Does this make databases faster or more efficient? Is there process or query isolation?

  7. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • CentOS 7.x install of eBPF

    1 project | /r/bpftrace | 14 Feb 2021
  • Kyanos: Your Network's New Best Friend

    1 project | dev.to | 20 Mar 2025
  • Reinventing notebooks as reusable Python programs

    5 projects | news.ycombinator.com | 19 Mar 2025
  • Jupyter JEP: AI Representation for tools that interact with notebooks

    2 projects | news.ycombinator.com | 13 Mar 2025
  • The DuckDB Local UI

    21 projects | news.ycombinator.com | 12 Mar 2025