From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14898 invoked by alias); 6 Jul 2016 20:27:23 -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 14886 invoked by uid 89); 6 Jul 2016 20:27:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=06072016, 06.07.2016, misinterpreted, Universit=e4t?= X-HELO: unimail.uni-dortmund.de Received: from mx1.HRZ.tu-dortmund.de (HELO unimail.uni-dortmund.de) (129.217.128.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 06 Jul 2016 20:27:11 +0000 Received: from [192.168.178.104] (x5d83fa37.dyn.telefonica.de [93.131.250.55]) (authenticated bits=0) by unimail.uni-dortmund.de (8.16.0.16/8.16.0.16) with ESMTPSA id u66KR3c0005150 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 6 Jul 2016 22:27:04 +0200 (CEST) Subject: Re: SystemTap for Android - patchset To: "Frank Ch. Eigler" References: <56e0c7f4-d317-f76b-5156-3569a6097b62@tu-dortmund.de> <577CF9A2.7050008@tu-dortmund.de> <577D6483.9050507@tu-dortmund.de> <20160706201514.GA29337@redhat.com> Cc: Josh Stone , systemtap@sourceware.org From: Alexander Lochmann Message-ID: <577D6996.40304@tu-dortmund.de> Date: Wed, 06 Jul 2016 20:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160706201514.GA29337@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jQAhectLGQ97SHPikSm8U84qoeEPdWaBT" X-IsSubscribed: yes X-SW-Source: 2016-q3/txt/msg00013.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jQAhectLGQ97SHPikSm8U84qoeEPdWaBT Content-Type: multipart/mixed; boundary="gxcDW0qFOkDNgwpIrxIB1Scd46lxn6fmi" From: Alexander Lochmann To: "Frank Ch. Eigler" Cc: Josh Stone , systemtap@sourceware.org Message-ID: <577D6996.40304@tu-dortmund.de> Subject: Re: SystemTap for Android - patchset References: <56e0c7f4-d317-f76b-5156-3569a6097b62@tu-dortmund.de> <577CF9A2.7050008@tu-dortmund.de> <577D6483.9050507@tu-dortmund.de> <20160706201514.GA29337@redhat.com> In-Reply-To: <20160706201514.GA29337@redhat.com> --gxcDW0qFOkDNgwpIrxIB1Scd46lxn6fmi Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Content-length: 1410 On 06.07.2016 22:15, Frank Ch. Eigler wrote: > Hi - >=20 > On Wed, Jul 06, 2016 at 10:05:23PM +0200, Alexander Lochmann wrote: >> [...] >>> % sh pidwrapper /path/to/this.pid staprun foo bar baz >>> >> That would be a nice workaround. I went through the source code. The >> commandline option is used by stapio. Stapio creates the pidfile. If I >> send a SIGKILL (or was it a SIGTERM? what so ever) to staprun, stap and >> the module won't be shutdown properly. Hence, I have to send the signal >> to stapio. >=20 > Since staprun exec's stapio, the latter will also share the same pid. > So this wrapper would work, whichever process happens to be running at > the moment. (Send SIGTERM or SIGINT for a clean shutdown.) >=20 Indeed... strange. If I remember it correctly, I would say that wasn't the case in that past. But git blame says something different. Thus, I suppose it was my "fault". I thing I simply misinterpreted my observations with "ps aux" back in that days. Anyway, I'll try your bash wrapper. :-) Do you have any concerns about the rest of my Android patch? Namely the build script and those ifdefs in staprun.c. - Alex >=20 > - FChE >=20 --=20 Technische Universit=E4t Dortmund Alexander Lochmann PGP key: 0xBC3EF6FD Otto-Hahn-Str. 16 phone: +49.231.7556141 D-44227 Dortmund fax: +49.231.7556116 http://ess.cs.tu-dortmund.de/Staff/al --gxcDW0qFOkDNgwpIrxIB1Scd46lxn6fmi-- --jQAhectLGQ97SHPikSm8U84qoeEPdWaBT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXfWmXAAoJEFk+7QW8Pvb9NaEQAKDcNqLtLgmuN8109ix0IS/j 2Do70uem0mgdmU8ALatLOvbgAJdN4lOFc0721PYCaJCg5b/Z/V7/+Zbx8bs8OILk gG9qTwHUZkEDA3K2iWH/fpFRXHUbmIftwrx+dGvfXbiysX7yshztk+QJWoBFkLmb DFeSuuTkKQ7syEQWjsNFaCSO7c+rLO/sWABWGCwSc0jXnrOxTnSaJeYkmjBTgq0N sBwqNaIU5tH0AJ8Wzv+s5jkgi1xBbhHJu2y6XPc24wTUcTxZnxPeGchhmLH/Yfq8 QUZ73EEDHts96DhbmPwH9RCWn7/eB5e0BSrflHegWGn1PiFwlHd7hCjBHCyIkAGa iYjuDoTLPKhBeOgrEMN86NUGiV93EEcAw/DTHkvN+DS8em2C/P2HKCoqcdrpoF5k gp1Kl8ENFp7IMRSWj/o3nJJK7iJdfrg7Ii9LTXSDjANXY4M7ae1zRut40311A8tn WrluxajsZvwPHMliW6xzySBaRodKaU32k0NTWpmJ8CWJjVa8FF1WQTMUocGhvpxC gOZDWxXxjUNkC8ZzaXIl5gTVmkgN18eCK9BrhI/qdgsHqfakztBDoqcfNgzNiT6V zlZmZm8P8LJPu9SInXO6j2mAxByYSiOm0ECMC5fGwUFKhTzobheTHQBB2gvi7spz UUWUv7JQkWlLrdE9IphM =FniI -----END PGP SIGNATURE----- --jQAhectLGQ97SHPikSm8U84qoeEPdWaBT--