From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4035 invoked by alias); 29 Aug 2011 08:32:22 -0000 Received: (qmail 4024 invoked by uid 22791); 29 Aug 2011 08:32:19 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50,LOTS_OF_MONEY,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bear.ext.ti.com (HELO bear.ext.ti.com) (192.94.94.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Aug 2011 08:31:56 +0000 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7T8Vo2S028715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Aug 2011 03:31:50 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7T8Voo3026618; Mon, 29 Aug 2011 03:31:50 -0500 (CDT) Received: from DNCE73.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7T8Vnl0028732; Mon, 29 Aug 2011 03:31:50 -0500 (CDT) Received: from dnce02.ent.ti.com ([137.167.131.106]) by DNCE73.ent.ti.com ([137.167.130.158]) with mapi; Mon, 29 Aug 2011 10:31:49 +0200 From: "Turgis, Frederic" To: "Frank Ch. Eigler" CC: Mark Wielaard , "systemtap@sourceware.org" Content-Class: urn:content-classes:message Date: Mon, 29 Aug 2011 08:32:00 -0000 Subject: RE: Making the transport layer more robust Message-ID: <13872098A06B02418CF379A158C0F1460162EB4F49@dnce02.ent.ti.com> References: <1311065908.9144.27.camel@springer.wildebeest.org><20110812174324.GA1394@hermans.wildebeest.org> <4E4965B3.6080700@redhat.com><1313500965.3393.5.camel@springer.wildebeest.org><13872098A06B02418CF379A158C0F1460162DC0A08@dnce02.ent.ti.com><13872098A06B02418CF379A158C0F1460162EB4CC7@dnce02.ent.ti.com> In-Reply-To: Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes 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 X-SW-Source: 2011-q3/txt/msg00216.txt.bz2 > You mean our > > execl("/bin/sh", "sh", "-c", cmd, NULL); > > calls in one or two places. We could change that to > > execlp("sh", "sh", "-c", cmd, NULL); > > if android's $PATH etc. are workable. > > - FChE > I tested that Ok, as Android defines PATH correctly. However, I have found = these comments on a systemtap execvp call so I am no sure of possible inter= ferences with other requirements: /* Note that execvp() is not a direct system call; it does a $PATH search in glibc. We would like to filter out these dummy syscalls from the utrace events seen by scripts. This filtering would be done for us for free, if we used ptrace ... but see PR6964. XXX: Instead, we could open-code the $PATH search here; put the pause() afterward; and run a direct execve instead of execvp(). */ Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet= . 036 420 040 R.C.S Antibes. Capital de EUR 753.920