Re: [RFC PATCH 0/2] kunit: Support redirecting function calls

From: Brendan Higgins
Date: Mon Apr 04 2022 - 17:26:49 EST


On Fri, Mar 18, 2022 at 9:22 AM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> On Fri, 18 Mar 2022 10:13:12 +0800
> David Gow <davidgow@xxxxxxxxxx> wrote:
>
> > Does either (or both) of these features sound useful, and is this
> > sort-of API the right model? (Personally, I think there's a reasonable
> > scope for both.) Is anything obviously missing or wrong? Do the names,
> > descriptions etc. make any sense?
>
> Obviously I'm biased toward the ftrace solution ;-)

Personally, I like providing both - as long as we can keep the
interface the same.

Ftrace is less visually invasive, but it is also less flexible in
capabilities, and requires substantial work to support on new
architectures.