All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <david.ahern@oracle.com>
To: sparclinux@vger.kernel.org
Subject: Re: system call tracing on sparc
Date: Fri, 10 Apr 2015 01:33:04 +0000	[thread overview]
Message-ID: <55272850.5010005@oracle.com> (raw)
In-Reply-To: <5526FAC8.8000309@oracle.com>

On 4/9/15 4:34 PM, David Miller wrote:
>>> Have you ever used system call tracing on sparc? It does not work for
>>> 2.6.39 or 4.0; wondering if it has ever worked. I see signs in
>>> arch/sparc/kernel/syscalls.S for example that suggests it should have
>>> at
>>> one point.
>>>
>>
>> To clarify I mean through perf. Using the tracing interface via
>> debugfs I can get the raw_syscall tracepoints, just not through perf.
>
> Oh, I've never tried to use that.
>
> Only the usual syscall tracing faciltiies via ptrace() that programs
> like strace make use of.
>

strace works fine, but the overhead of ptrace limits its use for 
performance analysis. The entries in the trace facility are not user 
friendly:

sshd-14987 [008] 25489.727139: sys_enter: NR 93 (b, 100001c8f10, 
100001c8ef0, 0, 0, 0)
sshd-14987 [008] 25489.727141: sys_exit: NR 93 = 93
sshd-14987 [008] 25489.727143: sys_enter: NR 103 (1, 7feff9d8bb8, 
7feff9d8c38, 8, fffffc01017d8d4c, 7feff9d8bb8)
sshd-14987 [008] 25489.727144: sys_exit: NR 103 = 103

The point of perf-trace is user friendly output (well, not user friendly 
with line wrapping):

      1.200 ( 0.023 ms): ls/13344 write(fd: 1, buf: 0x7f023781f000, 
count: 90                           ) = 90
      1.226 ( 0.022 ms): ls/13344 write(fd: 1, buf: 0x7f023781f000, 
count: 81                           ) = 81

and the low overhead means you can use it to get stats to analyze 
performance problems.

I'll ping Frederic and Steve for ideas on where to look.


  parent reply	other threads:[~2015-04-10  1:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 22:18 system call tracing on sparc David Ahern
2015-04-09 22:21 ` David Ahern
2015-04-09 22:33 ` David Miller
2015-04-09 22:34 ` David Miller
2015-04-10  1:33 ` David Ahern [this message]
2015-04-10  2:13 ` David Ahern

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=55272850.5010005@oracle.com \
    --to=david.ahern@oracle.com \
    --cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.