Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1287109 > unrolled thread
| Started by | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| First post | 2015-12-09 06:10 +0100 |
| Last post | 2015-12-11 20:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [for-next][PATCH 3/7] ftracetest: Add instance create and delete test Michael Ellerman <mpe@ellerman.id.au> - 2015-12-09 06:10 +0100
Re: [for-next][PATCH 3/7] ftracetest: Add instance create and delete test Steven Rostedt <rostedt@goodmis.org> - 2015-12-11 20:40 +0100
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2015-12-09 06:10 +0100 |
| Subject | Re: [for-next][PATCH 3/7] ftracetest: Add instance create and delete test |
| Message-ID | <qDFaN-3UH-3@gated-at.bofh.it> |
On Wed, 2015-11-25 at 11:08 -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" <rostedt@goodmis.org> > > Create a test to test instance creation and deletion. Several tasks are > created that create 3 directories and delete them. The tasks all create the > same directories. This places a stress on the code that creates and deletes > instances. > > diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance.tc b/tools/testing/selftests/ftrace/test.d/instances/instance.tc > new file mode 100644 > index 000000000000..773e276ff90b > --- /dev/null > +++ b/tools/testing/selftests/ftrace/test.d/instances/instance.tc > @@ -0,0 +1,90 @@ <snip> > +instance_slam & > +x=`jobs -l | tail -1` > +p5=`echo $x | cut -d' ' -f2` > +echo $p5 > + > +ls -lR >/dev/null > +sleep 1 > + > +kill -1 $p1 > +kill -1 $p2 > +kill -1 $p3 > +kill -1 $p4 > +kill -1 $p5 Tells me: ./ftracetest: 72: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] And the test hangs forever. I suspect because my /bin/sh is dash? # /bin/dash # kill -1 /bin/dash: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or kill -l [exitstatus] cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-12-11 20:40 +0100 |
| Message-ID | <qEBHQ-ir-25@gated-at.bofh.it> |
| In reply to | #1287109 |
On Wed, 09 Dec 2015 16:09:38 +1100
Michael Ellerman <mpe@ellerman.id.au> wrote:
> I suspect because my /bin/sh is dash?
>
> # /bin/dash
> # kill -1
> /bin/dash: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
> kill -l [exitstatus]
>
I did some digging and found a better way to do this. Does the belowe
patch fix things for you?
-- Steve
diff --git a/tools/testing/selftests/ftrace/test.d/instances/instance.tc b/tools/testing/selftests/ftrace/test.d/instances/instance.tc
index 773e276ff90b..1e1abe0ad354 100644
--- a/tools/testing/selftests/ftrace/test.d/instances/instance.tc
+++ b/tools/testing/selftests/ftrace/test.d/instances/instance.tc
@@ -39,28 +39,23 @@ instance_slam() {
}
instance_slam &
-x=`jobs -l`
-p1=`echo $x | cut -d' ' -f2`
+p1=$!
echo $p1
instance_slam &
-x=`jobs -l | tail -1`
-p2=`echo $x | cut -d' ' -f2`
+p2=$!
echo $p2
instance_slam &
-x=`jobs -l | tail -1`
-p3=`echo $x | cut -d' ' -f2`
+p3=$!
echo $p3
instance_slam &
-x=`jobs -l | tail -1`
-p4=`echo $x | cut -d' ' -f2`
+p4=$!
echo $p4
instance_slam &
-x=`jobs -l | tail -1`
-p5=`echo $x | cut -d' ' -f2`
+p5=$!
echo $p5
ls -lR >/dev/null
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web