[PATCH v2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-01-11 Thread Filipe Xavier
This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier --- Changes in v2: - functions.sh: added reset tracing on push and pop_config. - test-ftrace.sh: enabled tracing_on before test init. - nitpick: added double quotations on

Re: [PATCH] selftests: livepatch: test if ftrace can trace a livepatched function

2025-01-10 Thread Filipe Xavier
Em 07/01/2025 13:23, Joe Lawrence escreveu: On Thu, Jan 02, 2025 at 03:42:10PM -0300, Filipe Xavier wrote: This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Hi Filipe, Thanks for adding a test! Aside: another similar test could verify that the

[PATCH] selftests: livepatch: test if ftrace can trace a livepatched function

2025-01-02 Thread Filipe Xavier
This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/test-ftrace.sh | 37 1 file changed, 37 insertions(+) diff --git a/tools/testing/selftests/livepatch/test

[PATCH PATCH 1/2] selftests: livepatch: add new ftrace helpers functions

2025-03-06 Thread Filipe Xavier
Add new ftrace helpers functions cleanup_tracing, trace_function and check_traced_function. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/functions.sh | 45 ++ 1 file changed, 45 insertions(+) diff --git a/tools/testing/selftests/livepatch

[PATCH PATCH 2/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-06 Thread Filipe Xavier
This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/test-ftrace.sh | 35 1 file changed, 35 insertions(+) diff --git a/tools/testing/selftests/livepatch/test

[PATCH 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-06 Thread Filipe Xavier
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 --- Filipe Xavier (2): selftests: livepatch: add new ftrace helpers functions selftests: livepatch: test if

Re: [PATCH v2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-06 Thread Filipe Xavier
On 1/11/25 3:42 PM, Filipe Xavier wrote: This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier --- Changes in v2: - functions.sh: added reset tracing on push and pop_config. - test-ftrace.sh: enabled tracing_on before test

Re: [PATCH PATCH 2/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-18 Thread Filipe Xavier
On 3/17/25 6:07 AM, Miroslav Benes wrote: On Fri, 14 Mar 2025, Filipe Xavier wrote: On 3/14/25 10:14 AM, Miroslav Benes wrote: Hi, +start_test "trace livepatched function and check that the live patch remains in effect" + +FUNCTION_NAME="livepatch_cmdline_proc_s

Re: [PATCH PATCH 2/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-14 Thread Filipe Xavier
On 3/14/25 10:14 AM, Miroslav Benes wrote: Hi, +start_test "trace livepatched function and check that the live patch remains in effect" + +FUNCTION_NAME="livepatch_cmdline_proc_show" + +load_lp $MOD_LIVEPATCH +trace_function "$FUNCTION_NAME" trace_funtion() calls cleanup_ftrace() to prepare

[PATCH v2 2/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-18 Thread Filipe Xavier
This new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/test-ftrace.sh | 34 1 file changed, 34 insertions(+) diff --git a/tools/testing/selftests/livepatch/test

[PATCH v2 1/2] selftests: livepatch: add new ftrace helpers functions

2025-03-18 Thread Filipe Xavier
Add new ftrace helpers functions cleanup_tracing, trace_function and check_traced_functions. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/functions.sh | 49 ++ 1 file changed, 49 insertions(+) diff --git a/tools/testing/selftests/livepatch

[PATCH v2 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-18 Thread Filipe Xavier
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 Suggested-by: Marcos Paulo de Souza Reviewed-by: Marcos Paulo de Souza --- Changes in v2: - functions.sh: change check

[PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Filipe Xavier
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 Suggested-by: Marcos Paulo de Souza Reviewed-by: Marcos Paulo de Souza Acked-by: Miroslav Benes --- Changes in v3

[PATCH v3 1/2] selftests: livepatch: add new ftrace helpers functions

2025-03-24 Thread Filipe Xavier
Add new ftrace helpers functions cleanup_tracing, trace_function and check_traced_functions. Signed-off-by: Filipe Xavier --- tools/testing/selftests/livepatch/functions.sh | 49 ++ 1 file changed, 49 insertions(+) diff --git a/tools/testing/selftests/livepatch

Re: [PATCH v2 1/2] selftests: livepatch: add new ftrace helpers functions

2025-03-24 Thread Filipe Xavier
On 3/24/25 3:36 PM, Joe Lawrence wrote: On Tue, Mar 18, 2025 at 06:20:35PM -0300, Filipe Xavier wrote: [ ... snip ... ] + if [[ -n "$FTRACE_FILTER" ]]; then + echo "$FTRACE_FILTER" \ + | sed -e "/ all

Re: [PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Filipe Xavier
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 Acked-by: Miroslav Benes JFYI