From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87084 invoked by alias); 2 Jun 2015 20:29:35 -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 86990 invoked by uid 89); 2 Jun 2015 20:29:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mout.gmx.net Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 02 Jun 2015 20:29:32 +0000 Received: from [192.168.2.99] ([92.77.49.49]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MTSrf-1YYDTN345v-00SNyI; Tue, 02 Jun 2015 22:29:26 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: Prelinking on ARM From: Torsten Polle In-Reply-To: <1433269681.4538.237.camel@bordewijk.wildebeest.org> Date: Tue, 02 Jun 2015 20:29:00 -0000 Cc: systemtap@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <3FE8FEB6-F65B-4F42-A963-30B8D216262B@gmx.de> References: <1433269681.4538.237.camel@bordewijk.wildebeest.org> To: Mark Wielaard X-UI-Out-Filterresults: notjunk:1;V01:K0:Xx/yCvOmSGg=:jzt98fuFXjL02djhVQxWK0 TEIvGHi86p6SjkHNhUjuN9HYh9QBaF357xcSAoQuzUxy9D1p390SQTfbYVcOFRcg2fUu0Bw8w li4yHn9qnvveB5GR9XEKilSvGUR+brH1lDzD1lU39jg5xLbvLV6Gf3HBptYnVrDZPcNRp3PyA xZEMp2ERr6A6g0WGYcMxoqNghtB6gncJ/ptrFOhDd3QB39dXwK/1L8+fcJJhDw3Q6j3vbB4m0 QIvBBOSESLhphvvmN8VmCNEpYdXEHOrKo5GOhlZG7Wt80kyCJZkYFafnayL9bd3i9VCPEkGr9 lKU81wv+yn0e7aqsTx7K56wrvUlhSkc3i+iBlvX67JVP69kMG6FHxgeUY9lVgIDdgDJPt0Jjx PR6HpJTc6/eHSr99nIBp0VUJ2zHzI4MZJSgkvcZLSMquexUy4J9oy23EePwOzTRoxLeWxo76g EQyrItW701NEBOopDF7ALIiXBUg3522nUzGfqB2Z6TyZo3igPlsHKvlBLfaYSVT69rR6DQxdy 3i9uQ1aLNCdUqDcaSIRAuKTP27DlDUDLv9pN72cK464w+2H8Ug39eYbDTaqla/Fn2nygy3Z6Y qzcMYBMgk/ZemXc45wghWz1ry2AYUCZLZClDZiUxSv7vy5psChjmWIxQfhm1cbJ7y8tdjMW0B iqJO9jQFqy5jPVJhqlZauGHkiTldy5l03WgzDV/jGntgCM+Whbis5s1CgdrkeyV20OtE= X-SW-Source: 2015-q2/txt/msg00129.txt.bz2 Mark, Am 02.06.2015 um 20:28 schrieb Mark Wielaard : > On Mon, 2015-06-01 at 22:43 +0200, Torsten Polle wrote: >> I've a problem with prelinked shared and non-prelinked debug information >> for the same on ARM. The relative offset to the .text section differs >> for the prelinked shared library and the non-prelinked debug >> information. SystemTap only compensates for the difference in the start >> addresses. I tried to debug the problem, but I've to admit that the >> problem is well over my head. Could someone give me a hint on this >> matter? > > Does the testsuite/systemtap.exelib/exelib.exp test work for you? I've to check. I'm using a cross compile environment, i.e. I only run passes 1 - 4 on my host (X86) and execute staprun on my target (ARM). I could provide a small shared library as an example instead. > # Builds various variants of an executable and a shared library > # (with gcc/g++, -O0/-O3, prelinked/pie, seperate debuginfo) > # Then runs tests with a list of execs. > > # Don't enable all sub-tests by default, enable them separately when > # you want to track down an issue. > # Enable just the all-in-one test for regular test runs to safe time > #set subtestlist {lib mark uname ustack cleanup} > > make installcheck RUNTESTFLAGS=exelib.exp > > Which for me on an x86_64 and a armv7hl give: > > Snapshot: version 2.8/0.160, commit release-2.7-126-gf80d9cdb3078 > GCC: 4.8.3 [gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)] > Distro: Red Hat Enterprise Linux Workstation release 7.1 (Maipo) > SElinux: Enforcing > > > Running /home/mark/src/systemtap/testsuite/systemtap.exelib/exelib.exp ... > > === systemtap Summary === > > # of expected passes 376 > > Snapshot: version 2.8/0.161, commit release-2.7-160-g1eed3df165bc + > changes > GCC: 5.1.1 [gcc (GCC) 5.1.1 20150422 (Red Hat 5.1.1-1)] > Distro: Fedora release 22 (Twenty Two) > SElinux: Enforcing > > > Running ./systemtap.exelib/exelib.exp ... > > === systemtap Summary === > > # of expected passes 188 > > (arm has half the number of passes since x86_64 actually does twice as > many tests, for both normal 64bits binaries and for an -m32 binaries.) > > If the above doesn't match what you see on your setup could you enable > the subtests as indicated in the .exp file and see which particular > subtests fail (maybe include the relevant parts of the > testsuite/systemtap.log file). > > Thanks, > > Mark Thanks, Torsten