From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbbLIFJl (ORCPT ); Wed, 9 Dec 2015 00:09:41 -0500 Received: from ozlabs.org ([103.22.144.67]:58183 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828AbbLIFJk (ORCPT ); Wed, 9 Dec 2015 00:09:40 -0500 Message-ID: <1449637778.6028.20.camel@ellerman.id.au> Subject: Re: [for-next][PATCH 3/7] ftracetest: Add instance create and delete test From: Michael Ellerman To: Steven Rostedt , linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton Date: Wed, 09 Dec 2015 16:09:38 +1100 In-Reply-To: <20151125160912.414000400@goodmis.org> References: <20151125160838.739491216@goodmis.org> <20151125160912.414000400@goodmis.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-11-25 at 11:08 -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > 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 @@ > +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