[LTP] [PATCH] rt_sigaction.h: adjust for ARC

Cyril Hrubis chrubis@suse.cz
Mon Mar 7 11:13:19 CET 2016


Hi!
> To me all the song-and-dance in ltp_rt_sigaction() doesn't make sense.

These are required if you call the raw rt_sigaction syscall. Since
before signal handler is called the process context is saved on the
user-space stack and once signal is done it has to be restored. In order
to do that signal trampoline is called which calls sigreturn to restore
the context. And the way trapoline is executed is platform specific and
sometimes in the sa_restorer.

> The intent it to test whatever platform libc + kernel combination
> provides and to that end any fixups in LTP seem odd to me.
> So for ARC just call what libc provides and don't claim to support
> more/less.

These testcases are testing kernel syscall and some of the testcases
will not work with the libc wrapper. So NACK on the patch.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list