]> git.baikalelectronics.ru Git - kernel.git/commit
ftracetest: Use proper logic to find process PID
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 23 May 2016 14:04:46 +0000 (10:04 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 23 May 2016 14:04:46 +0000 (10:04 -0400)
commit76711c6c2fd86fde210f9cb9ab78530ccbdfab94
tree98e263b36b4bef68ef015a44850982566a642236
parentfddaf3d6db8ed29b12b9883779a389bbf60a6013
ftracetest: Use proper logic to find process PID

Half of the test in instance-event.tc was updated to use $! to find the PID
of the previous background process that was launched, but the second part of
the test still used the parsing of "jobs", which does not work on all shells
like $! does.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc