public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: Alexander Lochmann <alexander.lochmann@tu-dortmund.de>,
	       systemtap@sourceware.org
Subject: Re: SystemTap for Android - patchset
Date: Fri, 01 Jul 2016 17:47:00 -0000	[thread overview]
Message-ID: <c70c4f79-9b4d-677c-1f6e-67a109b862af@redhat.com> (raw)
In-Reply-To: <56e0c7f4-d317-f76b-5156-3569a6097b62@tu-dortmund.de>

On 07/01/2016 09:15 AM, Alexander Lochmann wrote:
> 
> Hi folks!
> 
> Finally, I decided to submit my patch, which makes SystemTap work for
> Android. Moreover, it adds two new features:
> - Support for ignoring all available tapset directories, except the one
> that is provided by -K

Can you explain why you need this?

One can already override the primary tapset directory with the
environment SYSTEMTAP_TAPSET.  Ignoring -I options also seems
questionable, especially since this depends on the order -- it looks
like -I specified after -K will still be used, while those before will
be ignored.

> - Support for a pid file in staprun, parameter is -U

And you added -M on stap itself.  I don't understand either of those
letter choices.

The functionality itself is not too controversial, but I'd still like to
see your justification in the commit log, and some examples how this is
used in Android.

> I had to modify several source files of staprun. Those changes are
> mostly copied from the corresponding files contained in commit
> 2c10863bfe41b51272eff714a837f4977bdc257a. For some reasons, those ifdef
> parts have been removed. I readded them, and changed the macro, which
> activates them.

That commit is "man stap: fixed typos".  Did you mean something else?

> The patch contains two bugfixes for the SystemTap as well.
> Unfortunately, I failed to extract those fixes properly. :(

As David said, it would help us a lot if you separated each of these
changes into distinct commits.  If you have the changes in a working git
directory, "git add -p" can help you mark specific changes to be
committed.  "git-gui" is also pretty good for selecting hunks.  Feel
free to ask for help on #systemtap if you still have trouble.

> The first fix starts at line 510, and goes until line 555.
> Since an older kernel like 3.0 does not support uprobes, systemtap
> includes 'runtime/linux/task_finder_stubs.c'. That file itself does
> *not* include 'syscall.h', which declares several syscall-related functions.
> The second fix starts at line 1106. For some reasons in the Linux kernel
> 3.0 the macro cputime_to_usecs() has a semicolon at the end of its
> definition. Therefore, the defition of cputime_to_msecs() in '
> tapset/linux/task_time.stp' must be modified to deal with that fact.
> 
> Cheers,
> Alex
> 
> ---
> Technische Universität 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
> 

  parent reply	other threads:[~2016-07-01 17:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f01a1f27-3cdb-61a4-cbdb-7bffd1032c8e@tu-dortmund.de>
2016-07-01 16:15 ` Alexander Lochmann
2016-07-01 16:56   ` David Smith
2016-07-01 17:47   ` Josh Stone [this message]
2016-07-06 12:29     ` Alexander Lochmann
2016-07-06 16:42       ` Frank Ch. Eigler
2016-07-06 20:05         ` Alexander Lochmann
2016-07-06 20:15           ` Frank Ch. Eigler
2016-07-06 20:27             ` Alexander Lochmann
2016-07-07 16:00       ` David Smith
2016-07-07 16:06       ` David Smith
2016-07-07 16:23         ` Alexander Lochmann
2016-07-07 17:39           ` David Smith
2016-07-07 20:51             ` Alexander Lochmann
2016-07-07 21:14               ` David Smith
2016-07-08  5:38                 ` Alexander Lochmann
2016-07-08 15:31                   ` David Smith
2016-07-07 18:47       ` David Smith
2016-07-07 19:01         ` Alexander Lochmann
2016-07-07 19:24           ` David Smith
2016-07-07 19:32             ` Alexander Lochmann

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=c70c4f79-9b4d-677c-1f6e-67a109b862af@redhat.com \
    --to=jistone@redhat.com \
    --cc=alexander.lochmann@tu-dortmund.de \
    --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).