Unsolicited thread intervention: Richard if you use ftrace on ARM a lot, have you looked into patchable function entry as described by Mark Rutland for ARM64 in this talk? https://www.youtube.com/watch?v=p9cqUTF4I0w (Described at 19:12 into the talk.)
I think it would be neat if we could do this on ARM32 as well but I do not know how hard it would be. Yours, Linus Walleij