[PATCH 2/2] Modify %process class: trace syscalls associated with process lifecycle

Dmitry V. Levin ldv at altlinux.org
Thu Jun 18 16:09:26 UTC 2020


On Wed, Jun 17, 2020 at 12:34:03PM +0200, Ákos Uzonyi wrote:
> The description is rephrased as:
> "Trace system calls associated with process lifecycle
> (creation, exec, termination)."
> 
> arch_prctl and unshare are removed, *kill and pidfd_send_signal are
> added to the %process class.

I vaguely remember it has been discussed already, but shouldn't 
rt_sigqueueinfo syscall also be added to this class?

> syscallent*.h files are updated automatically by:
> find linux -name syscallent*.h -exec \
> sed -i -r -e '
>     /(arch_prctl|unshare)/ {
>         s/(\{[^,]*,\t[^,]*)TP\|/\1/
>         s/(\{[^,]*,\t[^,]*)\|TP/\1/
>         s/(\{[^,]*,\t[^,]*)TP,/\10,/
>     }
> ' -e '
>     /(kill|pidfd_send_signal)/ {
>         s/(\{[^,]*,\t[^0][^,]*)/\1|TP/
>         s/(\{[^,]*,\s*)0/\1TP/
>     }
> ' {} +
> 
> * strace.1.in: Rephrase %process description
> * linux/32/syscallent.h: Add TS flag to *kill and pidfd_send_signal,
> remove from arch_prctl and unshare.

The flag being added is TP, isn't it?


-- 
ldv


More information about the Strace-devel mailing list