LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2] selftests/ftrace: fix glob selftest
@ 2020-01-07 9:40 Sven Schnelle
2020-01-07 23:42 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Sven Schnelle @ 2020-01-07 9:40 UTC (permalink / raw)
To: Steven Rostedt; +Cc: LKML, Sven Schnelle
test.d/ftrace/func-filter-glob.tc is failing on s390 because it has
ARCH_INLINE_SPIN_LOCK and friends set to 'y'. So the usual
__raw_spin_lock symbol isn't in the ftrace function list. Change
'*aw*lock' to '*spin*lock' which would hopefully match some of the
locking functions on all platforms.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
---
.../testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
index 27a54a17da65..cf296a3dd723 100644
--- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
+++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
@@ -30,7 +30,7 @@ ftrace_filter_check '*schedule*' '^.*schedule.*$'
ftrace_filter_check 'schedule*' '^schedule.*$'
# filter by *mid*end
-ftrace_filter_check '*aw*lock' '.*aw.*lock$'
+ftrace_filter_check '*spin*lock' '.*spin.*lock$'
# filter by start*mid*
ftrace_filter_check 'mutex*try*' '^mutex.*try.*'
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] selftests/ftrace: fix glob selftest
2020-01-07 9:40 [PATCH v2] selftests/ftrace: fix glob selftest Sven Schnelle
@ 2020-01-07 23:42 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2020-01-07 23:42 UTC (permalink / raw)
To: Sven Schnelle; +Cc: LKML
On Tue, 7 Jan 2020 10:40:47 +0100
Sven Schnelle <svens@linux.ibm.com> wrote:
> test.d/ftrace/func-filter-glob.tc is failing on s390 because it has
> ARCH_INLINE_SPIN_LOCK and friends set to 'y'. So the usual
> __raw_spin_lock symbol isn't in the ftrace function list. Change
> '*aw*lock' to '*spin*lock' which would hopefully match some of the
> locking functions on all platforms.
>
> Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
> ---
> .../testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
> index 27a54a17da65..cf296a3dd723 100644
> --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
> +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-glob.tc
> @@ -30,7 +30,7 @@ ftrace_filter_check '*schedule*' '^.*schedule.*$'
> ftrace_filter_check 'schedule*' '^schedule.*$'
>
> # filter by *mid*end
> -ftrace_filter_check '*aw*lock' '.*aw.*lock$'
> +ftrace_filter_check '*spin*lock' '.*spin.*lock$'
Just to make it not check the beginning, can you remove the 's':
'*pin*lock' '.*pin.*lock$'
Thanks!
-- Steve
>
> # filter by start*mid*
> ftrace_filter_check 'mutex*try*' '^mutex.*try.*'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-07 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 9:40 [PATCH v2] selftests/ftrace: fix glob selftest Sven Schnelle
2020-01-07 23:42 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).