[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.21.2406201129130.5846@pobox.suse.cz>
Date: Thu, 20 Jun 2024 11:31:15 +0200 (CEST)
From: Miroslav Benes <mbenes@...e.cz>
To: zhang warden <zhangwarden@...il.com>
cc: Song Liu <song@...nel.org>, Petr Mladek <pmladek@...e.com>,
Josh Poimboeuf <jpoimboe@...nel.org>, Jiri Kosina <jikos@...nel.org>,
Joe Lawrence <joe.lawrence@...hat.com>, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] livepatch: introduce klp_func called interface
Hi,
On Thu, 20 Jun 2024, zhang warden wrote:
>
>
> > On Jun 7, 2024, at 17:07, Miroslav Benes <mbenes@...e.cz> wrote:
> >
> > It would be better than this patch but given what was mentioned in the
> > thread I wonder if it is possible to use ftrace even for this. See
> > /sys/kernel/tracing/trace_stat/function*. It already gathers the number of
> > hits.
> >
>
> Hi, Miroslav
>
> Can ftrace able to trace the function which I added into kernel by livepatching?
yes, it should also work as is. I just generally recommend to use a
different name (prefixed for example) for the new replacement function to
avoid issues if you do not already do it.
Miroslav
Powered by blists - more mailing lists