- Check interface and functionality
PATCH v2 1/1 - Check interface and functionality
From: Veronika Kabatova <[email protected]>
Add a new test to verify enabling and disabling traces with supported flags works and doesn't cause any issues.
Dynamic debug was added in kernel 2.6.30, the first version only supported "p" flag and used "-" as indicator for no flags set. In kernel 3.2, additional flags "flmt" were added. Finally, in kernel 3.4, the indicator for no flags was changed to "=_".
The test takes into account different kernel versions and interface changes listed above.
--- runtest/tracing | 1 + testcases/kernel/tracing/dynamic_debug/Makefile | 27 ++++ .../tracing/dynamic_debug/dynamic_debug01.sh | 171 +++++++++++++++++++++ 3 files changed, 199 insertions(+) create mode 100644 testcases/kernel/tracing/dynamic_debug/Makefile create mode 100755 testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh
runtest/tracing +1 -0
@@ -2,3 +2,4 @@ ftrace_regression01 ftrace_regression01.sh ftrace_regression02 ftrace_regression02.sh ftrace-stress-test ftrace_stress_test.sh 90 +dynamic_debug01 dynamic_debug01.sh
testcases/kernel/tracing/dynamic_debug/Makefile new file +27 -0
@@ -0,0 +1,27 @@ +# +# tracing/dynamic_debug test suite Makefile. +# +# Copyright (C) 2017 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, see <http://www.gnu.org/licenses/>. +# + +top_srcdir ?= ../../.. + +include $(top_srcdir)/include/mk/env_pre.mk + +INSTALL_TARGETS := *.sh + +include $(top_srcdir)/include/mk/generic_leaf_target.mk +
testcases/kernel/tracing/dynamic_debug/dynamic_debug01.sh new file +171 -0
171 lines not on this page · raw message
Signature · 1 line
2.13.3
PATCH v2 1/1 - Check interface and functionality
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH v2 1/1 - Check interface and functionality
In reply to [email protected]Hi!
Just fyi, the text in [ ] gets removed when patch is applied via git am, so this patch description became just:
"- Check interface and functionality"
I should have caught that before I commited it to the repo...
Signature · 2 lines
Cyril Hrubis [email protected]