Commit 4496a1d9 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'trace-v4.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fix from Steven Rostedt:
 "Reviewing the selftest I recently submitted, I realize that the second
  part of it uses my old hack to get the PID of the spawned background
  tasks, which doesn't work for all shells, instead of the common use of
  $!"

* tag 'trace-v4.7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  ftracetest: Use proper logic to find process PID
parents d6542d76 97f8827a
...@@ -92,28 +92,23 @@ instance_slam() { ...@@ -92,28 +92,23 @@ instance_slam() {
} }
instance_slam & instance_slam &
x=`jobs -l` p1=$!
p1=`echo $x | cut -d' ' -f2`
echo $p1 echo $p1
instance_slam & instance_slam &
x=`jobs -l | tail -1` p2=$!
p2=`echo $x | cut -d' ' -f2`
echo $p2 echo $p2
instance_slam & instance_slam &
x=`jobs -l | tail -1` p3=$!
p3=`echo $x | cut -d' ' -f2`
echo $p3 echo $p3
instance_slam & instance_slam &
x=`jobs -l | tail -1` p4=$!
p4=`echo $x | cut -d' ' -f2`
echo $p4 echo $p4
instance_slam & instance_slam &
x=`jobs -l | tail -1` p5=$!
p5=`echo $x | cut -d' ' -f2`
echo $p5 echo $p5
ls -lR >/dev/null ls -lR >/dev/null
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment