3 ms·
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
by brendangregg 10y ago
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/mysqld_query.py https://github.com/iovisor/bcc/blob/master/examples/tracing/...
https://github.com/iovisor/bcc/blob/master/examples/tracing/mysqld_query_example.txt 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).
- caf 10y agoThat looks great! (Why is char query[128] apparently unused?) Is USDT expected to become the de facto standard for userspace probe points?
- brendangregg 10y agoOops, that looks like a left-over from development, that's no longer needed. Thanks! One of us should fix the example. :)