2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-03 11:13:56 +08:00
linux-next/tools/testing/selftests/ftrace/test.d
Xiao Yang f0c0d0cf59 selftests/ftrace: Check the first record for kprobe_args_type.tc
It is possible to get multiple records from trace during test and then more
than 4 arguments are assigned to ARGS.  This situation results in the failure
of kprobe_args_type.tc.  For example:
-----------------------------------------------------------
grep testprobe trace
   ftracetest-5902  [001] d... 111195.682227: testprobe: (_do_fork+0x0/0x460) arg1=334823024 arg2=334823024 arg3=0x13f4fe70 arg4=7
     pmlogger-5949  [000] d... 111195.709898: testprobe: (_do_fork+0x0/0x460) arg1=345308784 arg2=345308784 arg3=0x1494fe70 arg4=7
 grep testprobe trace
 sed -e 's/.* arg1=\(.*\) arg2=\(.*\) arg3=\(.*\) arg4=\(.*\)/\1 \2 \3 \4/'
ARGS='334823024 334823024 0x13f4fe70 7
345308784 345308784 0x1494fe70 7'
-----------------------------------------------------------

We don't care which process calls do_fork so just check the first record to
fix the issue.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-04-24 09:39:26 -06:00
..
00basic selftests/ftrace: Add trace_pipe testcase 2018-10-24 14:49:36 -06:00
direct ftrace/selftests: Fix spelling mistake "wakeing" -> "waking" 2019-11-15 11:30:38 -05:00
dynevent selftests/ftrace: Add testcases for dynamic event 2018-12-10 12:22:44 -05:00
event selftests/ftrace: Add test to test new set_event_notrace_pid file 2020-03-27 16:39:02 -04:00
ftrace selftests/ftrace: Check required filter files before running test 2020-04-23 17:11:37 -06:00
instances selftests/ftrace: Introduce exit_pass and exit_fail 2017-11-15 08:07:53 -07:00
kprobe selftests/ftrace: Check the first record for kprobe_args_type.tc 2020-04-24 09:39:26 -06:00
preemptirq kselftests: Add tests for the preemptoff and irqsoff tracers 2018-07-26 10:50:17 -04:00
selftest selftests/ftrace: Add checkbashisms meta-testcase 2019-05-24 13:38:29 -06:00
tracer selftests/ftrace: Fix invalid SPDX identifiers 2018-11-29 14:57:55 -07:00
trigger selftests/ftrace: Fix typo in trigger-multihist.tc 2020-03-13 13:31:13 -06:00
functions selftests/ftrace: Check required filter files before running test 2020-04-23 17:11:37 -06:00
template selftests/ftrace: Fix invalid SPDX identifiers 2018-11-29 14:57:55 -07:00