Naveen N. Rao
4aa4d4def2
selftests/ftrace: Add check for ping command for trigger tests
...
All these tests depend on the ping command and will fail if it is not
found. Allow tests to specify dependencies on programs through the
'requires' field. Add dependency on 'ping' for some of the trigger
tests.
Link: https://lore.kernel.org/all/20221017104312.16af5467@gandalf.local.home/
Reported-by: Akanksha J N <akanksha@linux.vnet.ibm.com >
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org >
Suggested-by: Steven Rostedt (Google) <rostedt@goodmis.org >
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org >
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2022-10-28 02:01:11 -06:00
Tom Zanussi
96378b2088
selftests/ftrace: Change synthetic event name for inter-event-combined test
...
This test uses waking+wakeup_latency as an event name, which doesn't
make sense since it includes an operator. Illegal names are now
detected by the synthetic event command parsing, which causes this
test to fail. Change the name to 'waking_plus_wakeup_latency' to
prevent this.
Link: https://lkml.kernel.org/r/a1ee2f76ff28ef7166fb788ca8be968887808920.1602598160.git.zanussi@kernel.org
Fixes: f06eec4d0f (selftests: ftrace: Add inter-event hist triggers testcases)
Acked-by: Masami Hiramatsu <mhiramat@kernel.org >
Tested-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Tom Zanussi <zanussi@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2020-10-15 12:01:13 -04:00
Masami Hiramatsu
3591e90fe1
selftests/ftrace: Convert required interface checks into requires list
...
Convert the required tracefs interface checking code with
requires: list.
Fixed merge conflicts in trigger-hist.tc and trigger-trace-marker-hist.tc
Shuah Khan <skhan@linuxfoundation.org >
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Reviewed-by: Tom Zanussi <zanussi@kernel.org >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2020-06-16 10:39:20 -06:00
Tom Zanussi
bea24f766e
selftests/ftrace: Distinguish between hist and synthetic event checks
...
With synthetic events now a separate config item as a result of
'tracing: Move synthetic events to a separate file', tests that use
both need to explicitly check for hist trigger support rather than
relying on hist triggers to pull in synthetic events.
Add an additional hist trigger check to all the trigger tests that now
require it, otherwise they'll fail if synthetic events but not hist
triggers are enabled.
Link: http://lkml.kernel.org/r/af36c539006ef2768114b4ed38e6b054f7c7a3bd.1590693308.git.zanussi@kernel.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Tom Zanussi <zanussi@kernel.org >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2020-06-01 08:23:37 -04:00
Tom Zanussi
403726d818
tracing: Add SPDX license GPL-2.0 license identifier to inter-event testcases
...
Apparently this directory was missed in the license cleanup process -
add the missing identifiers to the trigger/inter-event test cases.
Link: http://lkml.kernel.org/r/6f9828c2cfb0b378ebd217a39a1b44f063fc17fb.1550100284.git.tom.zanussi@linux.intel.com
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2019-02-20 13:51:07 -05:00
Masami Hiramatsu
cec3adf5f5
selftests/ftrace: Use loopback address instead of localhost
...
Use raw loopback address instead of localhost, because
"localhost" can depend on nsswitch and in some case
we can not resolve the localhost.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org >
2018-10-24 14:49:35 -06:00
Masami Hiramatsu
e527c47081
selftests/ftrace: Remove unneeded per-test init/cleanup ftrace
...
Since ftracetest framework calls initialize_ftrace() right before
each test and after all tests, we don't need to init/cleanup
ftrace for each test case.
Just remove such unneeded init/cleanup code because it can
increase logfile size.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org >
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org >
2018-10-24 14:49:35 -06:00
Rajvi Jingar
f06eec4d0f
selftests: ftrace: Add inter-event hist triggers testcases
...
This adds inter-event hist triggers testcases which covers following:
- create/remove synthetic event
- disable histogram for synthetic event
- extended error support
- field variable support
- histogram variables
- histogram trigger onmatch action
- histogram trigger onmax action
- histogram trigger onmatch-onmax action
- simple expression support
- combined histogram
Here is the test result.
=== Ftrace unit tests ===
[1] event trigger - test extended error support [PASS]
[2] event trigger - test field variable support [PASS]
[3] event trigger - test inter-event combined histogram trigger [PASS]
[4] event trigger - test inter-event histogram trigger onmatch action [PASS]
[5] event trigger - test inter-event histogram trigger onmatch-onmax action [PASS]
[6] event trigger - test inter-event histogram trigger onmax action [PASS]
[7] event trigger - test synthetic event create remove [PASS]
Link: http://lkml.kernel.org/r/e07ef1e72f7bf0f84dc87c9b736d6dc91b4b0b49.1516069914.git.tom.zanussi@linux.intel.com
Signed-off-by: Rajvi Jingar <rajvi.jingar@intel.com >
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com >
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org >
2018-03-10 16:06:05 -05:00