system call tracing on sparc
Dave:
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.
David
Quoted 7 lines · David Ahern
Dave:
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.Sfor 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.
From: David Ahern <[email protected]>
Date: Thu, 09 Apr 2015 16:18:48 -0600
Quoted 4 lines
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.Sfor example that suggests it should have at one point.
I've used strace in the past, and at the time it worked.
But admittedly this was many years ago.
From: David Ahern <[email protected]>
Date: Thu, 09 Apr 2015 16:21:27 -0600
Quoted 10 lines · David Ahern
Quoted 8 lines
Dave:
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.Sfor example that suggests it should have at
one point.
Quoted 2 lines
To clarify I mean through perf. Using the tracing interface via debugfs I can get the
raw_syscalltracepoints, 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.
Quoted 7 lines · David Miller
Quoted 7 lines
Quoted 6 lines
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.Sfor example that suggests it should have at
one point.
Quoted 8 lines
Quoted 2 lines
To clarify I mean through perf. Using the tracing interface via debugfs I can get the
raw_syscalltracepoints, 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.
Quoted 8 lines · David Ahern
Quoted 5 lines
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.Sfor 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_syscalltracepoints, just not through perf.
hmmm... nevermind. It does work on 4.0 (too many perf problems and too many kernel versions). I'll figure out when it started working.