From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129982 invoked by alias); 13 Jul 2016 19:45:00 -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 129960 invoked by uid 89); 13 Jul 2016 19:45:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:4723 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; Wed, 13 Jul 2016 19:44:58 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7661A20CE9E; Wed, 13 Jul 2016 19:44:57 +0000 (UTC) Received: from [10.13.129.38] (dhcp129-38.rdu.redhat.com [10.13.129.38]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6DJiuiD006401; Wed, 13 Jul 2016 15:44:57 -0400 Subject: Re: exercising current aarch64 kprobe support with systemtap To: Pratyush Anand , David Long References: <599229e0-49ad-1c8e-1055-81e38692e5ec@redhat.com> <575A54D6.2070801@linaro.org> <9ed0b392-ccae-16ff-a473-9b7cec7320b3@redhat.com> <578687B5.5030601@linaro.org> <20160713184457.GA27676@localhost.localdomain> Cc: systemtap@sourceware.org, Mark Brown From: William Cohen Message-ID: <699f7321-6196-0383-1e6b-7a2b91f3b720@redhat.com> Date: Wed, 13 Jul 2016 19:45:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160713184457.GA27676@localhost.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-q3/txt/msg00041.txt.bz2 On 07/13/2016 02:44 PM, Pratyush Anand wrote: > On 13/07/2016:02:25:57 PM, David Long wrote: >> On 07/12/2016 10:33 AM, William Cohen wrote: >>> On 06/10/2016 01:49 AM, David Long wrote: >>>> Attached are incremental diffs I hope will fix the latest systemtap failures, without abandoning atomic sequence checking. I'm trying to avoid the hex constants but I don't think the insn.c functions help in this case. >>>> >>>> -dl >>>> >>> >>> Hi Dave, >>> >>> Is this heuristic to limit the search to not go past the prologue going to be included in the arm64 kprobe patches? I ran the current v15 patches and saw that some of the tests were failing becuase some of the problems were unseccussful in registering as seen below in the output of systemtap.log. -Will >>> >>> spawn stap /root/systemtap_write/systemtap/testsuite/systemtap.base/bz1027459.stp >>> >>> WARNING: probe kernel.function("SyS_set_tid_address@kernel/fork.c:1236").call (address 0xfffffc00080c5f00) registration error (rc -22) >>> >>> WARNING: probe kernel.function("SyS_sched_setaffinity@kernel/sched/core.c:4706").call (address 0xfffffc00081010e8) registration error (rc -22) >>> >>> WARNING: probe kernel.function("SyS_sched_get_priority_min@kernel/sched/core.c:5029").call (address 0xfffffc00081015e8) registration error (rc -22) >>> >>> WARNING: probe kernel.function("SyS_sched_get_priority_max@kernel/sched/core.c:5002").call (address 0xfffffc0008101580) registration error (rc -22) >>> >>> hi >>> >>> FAIL: bz1027459 -p5 (0) >>> >>> spawn stap -v /root/systemtap_write/systemtap/testsuite/systemtap.base/equal.stp >>> >>> Pass 1: parsed user script and 115 library scripts using 51968virt/38784res/6976shr/32576data kb, in 190usr/0sys/202real ms. >>> >>> Pass 2: analyzed script: 4 probes, 1 function, 0 embeds, 2 globals using 91776virt/82176res/7744shr/72384data kb, in 1230usr/10sys/1241real ms. >>> >>> Pass 3: translated to C into "/tmp/stapK5F1ze/stap_5a080310fa71fdec33340dcee0389f80_1969_src.c" using 91776virt/82432res/8000shr/72384data kb, in 0usr/0sys/11real ms. >>> >>> Pass 4: compiled C into "stap_5a080310fa71fdec33340dcee0389f80_1969.ko" in 3190usr/640sys/3803real ms. >>> >>> Pass 5: starting run. >>> >>> WARNING: probe kernel.function("schedule@kernel/sched/core.c:3369") (address 0xfffffc00088f65c0) registration error (rc -22) >>> >>> systemtap starting probe >>> >>> FAIL: systemtap.base/equal.stp startup (timeout) >>> >>> spawn stap -v /root/systemtap_write/systemtap/testsuite/systemtap.base/finloop2.stp >>> >>> Pass 1: parsed user script and 115 library scripts using 52032virt/38848res/6976shr/32640data kb, in 200usr/0sys/204real ms. >>> >>> Pass 2: analyzed script: 4 probes, 1 function, 0 embeds, 2 globals using 91840virt/82240res/7744shr/72448data kb, in 1230usr/10sys/1246real ms. >>> >>> Pass 3: translated to C into "/tmp/stapfwr7Sg/stap_177624071ced2b52cbbfd6b4ea09dd28_1964_src.c" using 91840virt/82496res/8000shr/72448data kb, in 10usr/10sys/11real ms. >>> >>> Pass 4: compiled C into "stap_177624071ced2b52cbbfd6b4ea09dd28_1964.ko" in 3230usr/620sys/3812real ms. >>> >>> Pass 5: starting run. >>> >>> WARNING: probe kernel.function("schedule@kernel/sched/core.c:3369") (address 0xfffffc00088f65c0) registration error (rc -22) >>> >>> systemtap starting probe >>> >>> FAIL: systemtap.base/finloop2.stp startup (timeout) >>> >>> spawn stap -v /root/systemtap_write/systemtap/testsuite/systemtap.base/kfunct.stp >>> >>> Pass 1: parsed user script and 115 library scripts using 52032virt/38848res/6976shr/32640data kb, in 190usr/10sys/201real ms. >>> >>> Pass 2: analyzed script: 4 probes, 1 function, 0 embeds, 1 global using 91840virt/82240res/7744shr/72448data kb, in 1240usr/10sys/1245real ms. >>> >>> Pass 3: translated to C into "/tmp/stap8zsRzS/stap_2fa61ae7aa177442cb013709494408e9_1680_src.c" using 91840virt/82496res/8000shr/72448data kb, in 10usr/0sys/11real ms. >>> >>> Pass 4: compiled C into "stap_2fa61ae7aa177442cb013709494408e9_1680.ko" in 3210usr/620sys/3789real ms. >>> >>> Pass 5: starting run. >>> >>> WARNING: probe kernel.function("schedule@kernel/sched/core.c:3369") (address 0xfffffc00088f65c0) registration error (rc -22) >>> >>> systemtap starting probe >>> >>> FAIL: systemtap.base/kfunct.stp startup (timeout) >>> >>> >> >> I don't think we ever closed the loop on whether this was a good idea or > > I think, we should go with that improvement of recognising "stp > x29,x30,[sp,...]" until we have something from compiler to recognize .word > instructions. > >> not. This code is not present in v15. > > So, please take that in next revision. Yes, I am in favor of including this heuristic also. -Will > > ~Pratyush >