https://github.com/acbits/reftrack-plugin
I wrote this GCC plugin for this exact reason. Let's see whether the kernel team is interested in adopting it.
replies(3):
I wrote this GCC plugin for this exact reason. Let's see whether the kernel team is interested in adopting it.