public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: William Cohen <wcohen@redhat.com>
To: Sandeepa Prabhu <sandeepa.prabhu@linaro.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
	       systemtap@sourceware.org,
	Deepak Saxena <dsaxena@linaro.org>,
	       Krishna Dani <krishna.mohan@linaro.org>,
	       Jakub Pavelek <jakub.pavelek@linaro.org>,
	       Mark Wielaard <mjw@redhat.com>
Subject: Re: Regarding systemtap support for AArch64
Date: Mon, 28 Oct 2013 14:03:00 -0000	[thread overview]
Message-ID: <526E6E8E.50200@redhat.com> (raw)
In-Reply-To: <CA+b37P3CmOtyaTF_J+XvsDd=68-Fp=87Euneg4=KEVa_rFW_PQ@mail.gmail.com>

On 10/24/2013 12:19 AM, Sandeepa Prabhu wrote:
> On 24 October 2013 07:20, William Cohen <wcohen@redhat.com> wrote:
>> On 10/02/2013 12:17 AM, Sandeepa Prabhu wrote:
>>> Hi all,
>>>
>>> I have uploaded ARM64 kprobes work on Linaro public git:
>>> git://git.linaro.org/people/sandeepa.prabhu/linux-aarch64.git  Branch:
>>> kprobes_devel_v8.  Patches are published on LAKML too.  This is based
>>> on v8 upstream kernel (3.12-rc1) right now, and works with linaro
>>> boot-wrapper and fast model setup, though, not sure what it takes to
>>> build for fedora.
>>>
>>> Will,
>>>
>>> Is aarch64 fc19 port  public? I am interested in using fc on v8 fast
>>> model, are there instructions about how to get the packages and
>>> build/run them?
>>>
>>> Thanks,
>>> Sandeepa
>>
>> Hi Sandeepa,
>>
>> I finally got a locally built aarch64 kernel with the kprobe patches
>> built and running on the simulator.  The SystemTap tapsets.cxx needed to be
>> patched to understand the aarch64 (the attached patch). With that patch the
>> SystemTap Beginner's guide smoke test example showed signs of life!
>> However, it took minutes for it to compile and run.
>>
>> [wcohen@localhost systemtap]$ sudo ../install/bin/stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
>> [sudo] password for wcohen:
>> Pass 1: parsed user script and 92 library script(s) using 140528virt/24952res/2744shr/22868data kb, in 4740usr/160sys/5319real ms.
>> Pass 2: analyzed script: 1 probe(s), 1 function(s), 3 embed(s), 0 global(s) using 326804virt/106856res/3568shr/103752data kb, in 33860usr/14520sys/52942real ms.
>> Pass 3: translated to C into "/tmp/stap6Cbu2d/stap_3a0ef010f6cdfb2bdc3cac691a0f3c0e_1393_src.c" using 326804virt/109236res/5948shr/103752data kb, in 120usr/30sys/163real ms.
>> Pass 4: compiled C into "stap_3a0ef010f6cdfb2bdc3cac691a0f3c0e_1393.ko" in 117620usr/10440sys/141829real ms.
>> Pass 5: starting run.
>> read performed
>> Pass 5: run completed in 100usr/90sys/573real ms.
> Hi Will,
> 
> Great to know this!, Thanks for the patch. Hope you have taken v2
> version of kprobe patches, found here:
> https://git.linaro.org/gitweb?p=people/sandeepa.prabhu/linux-aarch64.git;a=shortlog;h=refs/heads/arm64-kprobes-v2
> v2 is cleaner, and implements recursive kprobes (like probing printk)
> and also few fixes in missed-kprobe handling.
> So, do you think we can measure kprobes performance running on v8 fast
> models (slow model though :))? the milliseconds it shows for
> completion will be accurate only if have real hardware right?
> 
> From this weekend thru next week, we are mostly under travel to Linaro
> connect @Santa Clara, so may not spend more time on this, but we would
> like to start validating the kprobes using systemtap and may get more
> hands within Linaro to work with systemtap community. If anyone is
> attending LCU this time, ping me and we can meet.
> 
> Cheers,
> Sandeepa
> 
>> [wcohen@localhost systemtap]$ uname -a
>> Linux localhost 3.12.0-rc5+ #3 SMP Wed Oct 23 15:03:27 EDT 2013 aarch64 aarch64 aarch64 GNU/Linux
>>
>> -Will


Hi Sandeepa,

I got the v2 versions of the kprobe patches and built and booted the new kernel. It functions and gives the same same results as the earlier version of the kprobe patches.  I was looking around to see why the $return doesn't work and came across the a similar thread for the arm from a couple years ago:

http://comments.gmane.org/gmane.linux.systemtap/17986

elfutils still need to have some additional aarch64 support included so that systemtap can find the location of the return value.

-Will

  parent reply	other threads:[~2013-10-28 14:03 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24  3:13 Sandeepa Prabhu
2013-09-24  8:43 ` Mark Wielaard
2013-09-24  9:36   ` Sandeepa Prabhu
2013-09-25 18:45   ` William Cohen
2013-09-26  3:13     ` Sandeepa Prabhu
2013-09-26 14:35       ` William Cohen
2013-09-26 14:57         ` Sandeepa Prabhu
2013-09-27 14:16           ` William Cohen
2013-09-30  2:36       ` Masami Hiramatsu
2013-09-30  2:57         ` Sandeepa Prabhu
2013-09-30 12:11         ` William Cohen
2013-10-02  4:17           ` Sandeepa Prabhu
2013-10-02 11:24             ` Masami Hiramatsu
2013-10-03  3:12               ` Sandeepa Prabhu
2013-10-03 13:01                 ` Masami Hiramatsu
2013-10-04  3:24                   ` Sandeepa Prabhu
2013-10-05  3:24                     ` Masami Hiramatsu
2013-10-07  9:51                       ` Sandeepa Prabhu
2013-10-07 10:11                         ` Masami Hiramatsu
2013-10-07 11:12                           ` Sandeepa Prabhu
2013-10-15  9:39                             ` Masami Hiramatsu
2013-10-24  4:26                               ` Sandeepa Prabhu
2013-10-24  5:08                                 ` Masami Hiramatsu
2013-10-04 15:57             ` William Cohen
2013-10-07  9:26               ` Sandeepa Prabhu
2013-10-08  4:28               ` Sandeepa Prabhu
2013-10-08  4:39                 ` Sandeepa Prabhu
2013-10-14 16:38                   ` William Cohen
2013-10-14 21:21                     ` William Cohen
2013-10-15  2:29                       ` Sandeepa Prabhu
2013-10-15  3:02                         ` William Cohen
2013-10-16  2:33                       ` William Cohen
2013-10-16  2:38                     ` William Cohen
2013-10-24  1:50             ` William Cohen
2013-10-24  4:19               ` Sandeepa Prabhu
2013-10-24 13:49                 ` William Cohen
2013-10-28 14:03                 ` William Cohen [this message]
2013-11-01 21:06                   ` William Cohen
2013-09-25  4:42 ` Masami Hiramatsu
2013-12-02 15:45 ` An attempt for systemtap "make installcheck" AArch64 William Cohen
2013-12-03  5:25   ` Sandeepa Prabhu
2013-12-03 15:21     ` William Cohen
2013-12-03 16:36       ` William Cohen
2013-12-09 20:35         ` William Cohen
2013-12-16  6:06           ` Sandeepa Prabhu
2013-12-16 12:41             ` William Cohen
2013-12-03 19:48       ` William Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=526E6E8E.50200@redhat.com \
    --to=wcohen@redhat.com \
    --cc=dsaxena@linaro.org \
    --cc=jakub.pavelek@linaro.org \
    --cc=krishna.mohan@linaro.org \
    --cc=masami.hiramatsu.pt@hitachi.com \
    --cc=mjw@redhat.com \
    --cc=sandeepa.prabhu@linaro.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).