From: Russell King - ARM Linux > Sent: 27 November 2018 15:36 ... > There appears to be no documentation at all of this interface, so there > is no definition of how it is supposed to work or what it is supposed > to expose beyond what little information is in the original patch: > > http://lkml.iu.edu/hypermail/linux/kernel/0807.2/0577.html > > This adds /proc/PID/syscall and /proc/PID/task/TID/syscall magic files. > These use task_current_syscall() to show the task's current system call > number and argument registers, stack pointer and PC. For a task blocked > but not in a syscall, the file shows "-1" in place of the syscall number, > followed by only the SP and PC. For a task that's not blocked, it shows > "running". I 'like' the way the columns for sp and pc jump about ... David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)