News for hackers. Stuff that matters.
Re:DTrace for Linux 2016 by caf on Sunday October 30, 2016 @08:51AM (#12829499)
Yes, D everyone would be nice, but what exactly does it mean? We can share DTrace scripts? Docs? Blog posts? Books? I've been porting them all over to bcc/BPF. Am I missing something?

I think the most important thing to support would actually be DTrace's probe definition files. It would be great, for example, if the story for PostgreSQL's dtrace probe points was "your dtrace probe points are now accessible from eBPF programs too!".

Re:DTrace for Linux 2016 by brendangregg on Sunday October 30, 2016 @08:48PM (#12833507)
That already works! :) I wrote some MySQL examples in bcc that use the MySQL USDT probe points. Eg:

https://github.com/iovisor/bcc/blob/master/examples/tracing/... https://github.com/iovisor/bcc/blob/master/examples/tracing/...

There's also a tool in /tools.

I'll whip up some PostgreSQL examples too (unless someone else beats me to it).

Re:DTrace for Linux 2016 by caf on Sunday October 30, 2016 @09:21PM (#12833625)
That looks great! (Why is char query[128] apparently unused?)

Is USDT expected to become the de facto standard for userspace probe points?

Re:DTrace for Linux 2016 by brendangregg on Monday October 31, 2016 @01:25AM (#12834472)
Oops, that looks like a left-over from development, that's no longer needed. Thanks! One of us should fix the example. :)