{"by":"knuckleheads","descendants":9,"id":41368239,"kids":[41398412,41375086,41401700],"score":58,"text":"Hello! The last few weeks I&#x27;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 <a href=\"https:&#x2F;&#x2F;github.com&#x2F;zmaril&#x2F;bpfquery\">https:&#x2F;&#x2F;github.com&#x2F;zmaril&#x2F;bpfquery</a>. It&#x27;s a very minimal sql to bpftrace compiler that lets you explore what&#x27;s going on with your systems. It implements queries, expressions, and filters&#x2F;wheres&#x2F;predicates, and has a streaming pivot table interface built on <a href=\"https:&#x2F;&#x2F;perspective.finos.org\" rel=\"nofollow\">https:&#x2F;&#x2F;perspective.finos.org</a>. 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!","time":1724770509,"title":"Show HN: bpfquery – experimenting with compiling SQL to bpf(trace)","type":"story","url":"https://bpfquery.com/?showing=kprobe"}