* syscall.c (get_scno): For POWERPC64 and X86-64, variable currpers
is declared static. But its old data is never used. Convert it
to ordinary local variable.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
# ifdef POWERPC64
if (!(tcp->flags & TCB_INSYSCALL)) {
- static int currpers = -1;
+ /* TODO: speed up strace by not doing this at every syscall.
+ * We only need to do it after execve.
+ */
+ int currpers;
long val;
int pid = tcp->pid;
return -1;
if (!(tcp->flags & TCB_INSYSCALL)) {
- static int currpers = -1;
+ /* TODO: speed up strace by not doing this at every syscall.
+ * We only need to do it after execve.
+ */
+ int currpers;
long val;
int pid = tcp->pid;