From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35507 invoked by alias); 15 Dec 2015 12:41:18 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 35490 invoked by uid 89); 15 Dec 2015 12:41:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 15 Dec 2015 12:41:16 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 6BA8C372514; Tue, 15 Dec 2015 12:41:15 +0000 (UTC) Received: from fche.csb (vpn-54-20.rdu2.redhat.com [10.10.54.20]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tBFCfFZe009395; Tue, 15 Dec 2015 07:41:15 -0500 Received: by fche.csb (Postfix, from userid 2569) id C6F43584DB; Tue, 15 Dec 2015 07:41:14 -0500 (EST) To: Zhou Wenjian Cc: Subject: Re: [PATCH 3/3] Add new case for stress test References: <1450164104-1508-1-git-send-email-zhouwj-fnst@cn.fujitsu.com> <1450164104-1508-3-git-send-email-zhouwj-fnst@cn.fujitsu.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 15 Dec 2015 12:41:00 -0000 In-Reply-To: <1450164104-1508-3-git-send-email-zhouwj-fnst@cn.fujitsu.com> (Zhou Wenjian's message of "Tue, 15 Dec 2015 15:21:44 +0800") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2015-q4/txt/msg00286.txt.bz2 zhouwj-fnst wrote: > [...] > +proc gen_load {} { > + # if 'genload' from the ltp exists, use it to create a real load > + set genload {/usr/local/ltp/testcases/bin/genload} > + if [file executable $genload] { > [...] How about using the same logic used in lib/stap_run.exp looking for /usr/bin/stress? Or $PATH searching? That /usr/local/ltp path is just not a good fit for general installations. - FChE