tools/testing/selftests/livepatch/functions.sh | 49 ++++++++++++++++++++++++ tools/testing/selftests/livepatch/test-ftrace.sh | 34 ++++++++++++++++ 2 files changed, 83 insertions(+)
This patchset add ftrace helpers functions and
add a new test makes sure that ftrace can trace
a function that was introduced by a livepatch.
Signed-off-by: Filipe Xavier <felipeaggger@gmail.com>
Suggested-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
---
Changes in v3:
- functions.sh: fixed sed to remove warning from shellcheck and add grep -Fw params.
- test-ftrace.sh: change constant to use common SYSFS_KLP_DIR.
- Link to v2: https://lore.kernel.org/r/20250318-ftrace-sftest-livepatch-v2-0-60cb0aa95cca@gmail.com
Changes in v2:
- functions.sh: change check traced function to accept a list of functions.
- Link to v1: https://lore.kernel.org/r/20250306-ftrace-sftest-livepatch-v1-0-a6f1dfc30e17@gmail.com
---
Filipe Xavier (2):
selftests: livepatch: add new ftrace helpers functions
selftests: livepatch: test if ftrace can trace a livepatched function
tools/testing/selftests/livepatch/functions.sh | 49 ++++++++++++++++++++++++
tools/testing/selftests/livepatch/test-ftrace.sh | 34 ++++++++++++++++
2 files changed, 83 insertions(+)
---
base-commit: 848e076317446f9c663771ddec142d7c2eb4cb43
change-id: 20250306-ftrace-sftest-livepatch-60d9dc472235
Best regards,
--
Filipe Xavier <felipeaggger@gmail.com>
On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier <felipeaggger@gmail.com> > Acked-by: Miroslav Benes <mbenes@suse.cz> JFYI, the patchset has been committed into livepatching.git, branch for-6.15/ftrace-test. I had a dilemma whether to push it for 6.15 or postpone it. But it is a selftest and quite trivial. And it has been reviewed by several people. And it seems to work well so I think that we could push it for 6.15. Best Regards, Petr
On 3/25/25 11:01 AM, Petr Mladek wrote: > On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: >> This patchset add ftrace helpers functions and >> add a new test makes sure that ftrace can trace >> a function that was introduced by a livepatch. >> >> Signed-off-by: Filipe Xavier <felipeaggger@gmail.com> >> Acked-by: Miroslav Benes <mbenes@suse.cz> > JFYI, the patchset has been committed into livepatching.git, > branch for-6.15/ftrace-test. > > I had a dilemma whether to push it for 6.15 or postpone it. > But it is a selftest and quite trivial. And it has been > reviewed by several people. And it seems to work well > so I think that we could push it for 6.15. It sounds good to me, thank you all very much for the support. Cheers, Filipe > Best Regards, > Petr
On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier <felipeaggger@gmail.com> > Acked-by: Miroslav Benes <mbenes@suse.cz> For both patches: Reviewed-by: Petr Mladek <pmladek@suse.com> Tested-by: Petr Mladek <pmladek@suse.com> Best Regards, Petr
On Mon, Mar 24, 2025 at 07:50:17PM -0300, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier <felipeaggger@gmail.com> > Suggested-by: Marcos Paulo de Souza <mpdesouza@suse.com> > Reviewed-by: Marcos Paulo de Souza <mpdesouza@suse.com> > Acked-by: Miroslav Benes <mbenes@suse.cz> > --- > Changes in v3: > - functions.sh: fixed sed to remove warning from shellcheck and add grep -Fw params. Oh, now I see what shellcheck was complaining about. I missed that there was no '\' line continuation char at the end of the sed line. I thought it was complaining about starting the subsequent lines with the '|' and '>' redirection chars. Good eye on catching that :) > - test-ftrace.sh: change constant to use common SYSFS_KLP_DIR. > - Link to v2: https://lore.kernel.org/r/20250318-ftrace-sftest-livepatch-v2-0-60cb0aa95cca@gmail.com > For both patches: Acked-by: Joe Lawrence <joe.lawrence@redhat.com> Thanks, -- Joe
© 2016 - 2025 Red Hat, Inc.