Re: [PATCH] livepatch: introduce klp_func called interface

From: Joe Lawrence
Date: Thu Jun 06 2024 - 11:17:51 EST


Hi Wardenjohn,

To follow up, Red Hat kpatch QE pointed me toward this test:

https://gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/tree/main/general/kpatch/kpatch-trace?ref_type=heads

which reports a few interesting things via systemd service and ftrace:

- Patched functions
- Traced functions
- Code that was modified, but didn't run
- Other code that ftrace saw, but is not listed in the sysfs directory

The code looks to be built on top of the same basic ftrace commands that
I sent the other day. You may be able to reuse/copy/etc bits from the
scripts if they are handy.

--
Joe