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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo