LFCS: Building the kernel with Clang
LFCS: Building the kernel with Clang
Posted May 6, 2011 1:35 UTC (Fri) by jzbiciak (guest, #5246)In reply to: LFCS: Building the kernel with Clang by nevets
Parent article: LFCS: Building the kernel with Clang
If I read this correctly, the only real difference is that the __fentry__ call happens before pushing %rbp and establishing a stack frame, whereas with mcount, it's a true nested call.
Aside from a shorter stack depth and a different label, could you expand on what the advantages are? You mention that it will allow you to add a lot more features to Ftrace. (A link is fine if you have one handy.)
Thanks!