[RFC] filter profiling

Vincent Bernat bernat at luffy.cx
Tue Aug 29 07:57:20 CEST 2017


 ❦ 29 août 2017 06:14 +0300, Lennert Buytenhek <buytenh at wantstofly.org> :

> Feedback appreciated!  (Better ideas also appreciated. :D)

Using USDT probes? You can attach arbitrary strings to them. I know perf
supports them (with a recent kernel) but I don't know how
exactly. However, with systemtap, it's dead easy to see them:

stap -e 'probe bird.* { print($$vars) }'

For implementation, see:
 https://github.com/vincentbernat/lldpd/commit/bdfe419389075af3cdfeadc78008a157afc2d5d7
 https://github.com/vincentbernat/lldpd/commit/140e34f057462d5ff7818ab4af368f055eaad4e3
-- 
Say what you mean, simply and directly.
            - The Elements of Programming Style (Kernighan & Plauger)



More information about the Bird-users mailing list