OSDN Git Service

tracing/selftests: Add test for event filtering on function name
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 19 Dec 2022 18:31:08 +0000 (13:31 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 25 Jan 2023 15:31:23 +0000 (10:31 -0500)
commit7f09d639b8c4959736ff112d0fb42780c37ff6db
treeadbeac96321fddf5a29f729146ba0ff611052a72
parente6745a4da964f5f49b21cbcce5125456984ddc6b
tracing/selftests: Add test for event filtering on function name

With the new filter logic of passing in the name of a function to match an
instruction pointer (or the address of the function), add a test to make
sure that it is functional.

This is also the first test to test plain filtering. The filtering has
been tested via the trigger logic, which uses the same code, but there was
nothing to test just the event filter, so this test is the first to add
such a case.

Link: https://lkml.kernel.org/r/20221219183214.075559302@goodmis.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Zheng Yejian <zhengyejian1@huawei.com>
Cc: linux-kselftest@vger.kernel.org
Suggested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Ross Zwisler <zwisler@google.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/filter/event-filter-function.tc [new file with mode: 0644]