svn commit: r344487 - in head/sys: conf gnu/gcov

Enji Cooper yaneurabeya at gmail.com
Fri Mar 1 02:10:43 UTC 2019


> On Feb 28, 2019, at 5:39 PM, Matthew Macy <mmacy at freebsd.org> wrote:
> 
> to config add:
> options LINDEBUGFS
> options GCOV
> 
> compile kernel with gcc (otherwise it will be a no-op)
> 
> sysctl debug.gcov.enable=1
> 
> mount -t debugfs debugfs /sys/kernel/debug
> 
> (or wherever) and the output artifacts will appear under gcov/<kernel
> build path> - you need to be root to see the artifacts
> 
> gcov can then generate the results as it would normally from the
> profiling and the build time artifacts
> 
> bug reports welcome

Shouldn’t this be documented on the wiki?
Thanks!
-Enji


More information about the svn-src-head mailing list