strace/linux/x32
Eugene Syromyatnikov 811638e9c1 Implement -e trace=%sched option for tracing sched_* syscalls
Based on the patch by Md Haris Iqbal
(https://sourceforge.net/p/strace/mailman/message/35111320/)

linux/*/syscallent.h part is modified automatically by:

    git grep -Fl 'SEN(sched_' linux/ | xargs sed -i \
        's/0\(,[[:space:]]*SEN(sched_\)/TSC\1/'

* sysent.h (TRACE_SCHED): New definition.
* syscall.c: Alias TSC to TRACE_SCHED around syscallent.h inclusion.
* linux/32/syscallent.h: Add TSC flag for sched_* sycalls.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* qualify.c (lookup_class): Add TRACE_SCHED for "%sched".
* tests/ksysent.c: Define TSC to 0.
* tests/nsyscalls.c: Likewise.
* tests/sched.test: New test.
* tests/Makefile.am (DECODER_TESTS): Add sched.test.
* strace.1 (.SS Filtering): Add information about %sched syscall class.
* NEWS: Mention this change.

Co-authored-by: Md Haris Iqbal <haris.phnx@gmail.com>
2017-03-05 01:11:13 +01:00
..
arch_regs.c s390x, x32: remove redundant definitions of ARCH_PC_REG 2016-08-14 00:02:55 +00:00
arch_regs.h x32: fix build regression 2015-02-26 20:40:43 +00:00
arch_sigreturn.c cleanup: make arch_sigreturn.c files more readable 2015-11-28 02:58:29 +00:00
asm_stat.h x86_64: provide a replacement of <asm/stat.h> for x32 personality 2016-08-24 12:10:50 +00:00
errnoent1.h Cleanup auxiliary errnoent files 2015-02-23 03:56:06 +00:00
get_error.c syscall.c: split arch specific code into separate arch files 2015-03-23 22:24:59 +00:00
get_scno.c syscall.c: split arch specific code into separate arch files 2015-03-23 22:24:59 +00:00
get_syscall_args.c syscall.c: split arch specific code into separate arch files 2015-03-23 22:24:59 +00:00
ioctls_arch0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
ioctls_arch1.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
ioctls_inc0.h Update ioctl entries from linux 4.10 2017-02-04 15:57:01 +00:00
ioctls_inc1.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
set_error.c Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
set_scno.c Implement arch specific methods of changing syscall number and error code 2016-11-16 02:33:13 +00:00
signalent1.h Cleanup auxiliary signalent files 2015-02-23 20:55:11 +00:00
syscallent1.h x32: fix decoding of i386 truncate and ftruncate syscalls 2013-05-02 08:46:30 +00:00
syscallent.h Implement -e trace=%sched option for tracing sched_* syscalls 2017-03-05 01:11:13 +01:00
userent.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00