[PATCH v3 2/3] Add %clock trace class

Dmitry V. Levin ldv at altlinux.org
Fri Apr 17 21:39:40 UTC 2020


On Fri, Apr 17, 2020 at 11:32:49PM +0200, Ákos Uzonyi wrote:
> The %clock class includes the syscalls that read or modify system clock.
> 
> sed -i -r '
>     /"(.*adjtime.*|.*clock_(get|set|adj).*|.*(get|set)timeofday.*|'\
> 'time)"/ {
>         s/(\{[^,]*,\t[^0][^,]*)/\1|TCL/
>         s/(\{[^,]*,\s*)0/\1TCL/
>     }
> ' linux/*/syscallent*.h
> 
> * basic_filters.c (loopup_class): Add %clock member to syscall_class[].
> * linux/64/syscallent.h: Add TCL flag to clock related syscalls.
> * linux/alpha/syscallent.h: Likewise.
> * linux/arm/syscallent.h: Likewise.
> * linux/avr32/syscallent.h: Likewise.
> * linux/bfin/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/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.
> * strace.1.in: Add %clock description.
> * strace.c (usage): Add %clock group to help message.
> * sysent.h (TRACE_CLOCK): New definition.
> * sysent_shorthand_defs.h (TC): Likewise.
> * sysent_shorthand_undefs.h (TC): Add undef.
> * NEWS: Mention this.

Now the list of syscallent files is out of date.
No need to re-post the patch, I'll add these 4 files.


-- 
ldv


More information about the Strace-devel mailing list