set syscalls_todo to N, not N+1

I really do not see any use case to increment users choice.

Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
params: Add missing \n into usage output

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
add basic information for PA-RISC architecture
add more headers to fix compile on PA-RISC
configure.sh: support cross compilation with sysroot

SYSROOT points to the path where libs and headers are to be searched
from.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
log: Add BUG_ON helper

We will use it in sockets creating routine.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: protocols -- Use ARRAY_SIZE helper

We're looking up over @protocols array so use appropriate
helper here instead of TRINITY_PF_MAX constant.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: protocols -- Add lookup_proto helper

We will use it for parsing disabled sockets families as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: protocols -- Move protocol function declarations to protocols.h

This allows to isolate functions and include the header only where needed.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
params: Add --no_proto|-E option

This option will track the socket families which user
prefer to exclude from testing, for example PF_PACKET
sockets and such.

Note I've had to include net.h in two files only because
TRINITY_PF_MAX is declared there. Maybe it worth to move
this constant to constants.h.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
net: sockets -- Don't generate sockets with disabled protocol families

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
quit child if we keep stalling without making progress.
restore the unconditional <timed out> message.
save/restore r10 around 32bit x86-64 syscalls.

This fixes the problem where we segfault as soon as we hit __syscall_return(res)
res was being held in r10, and went out of scope once we hit the syscall,
so we were scribbling through random ptrs ->segv.

We should probably be saving more registers here to be completely safe,
but for now this seems to do the trick.
remove the num_args checking in syscall32.
cleanup syscall32 some more.

remove some unnecessary ifdeffery
remove i386 int80 code.

This is unnecessary. x86-32 uses syscall(), not syscall32().
remove logging usage of previous_a*

This is bogus. The old code compared an unaltered version of the register
to the post-sanitised version.  This 'oldreg' bears no relation to
shm->previous_a* which is the _previous syscall_ that was made.
The latter is a debug thing, not something useful in this way.

We only did this to colorize the output some, so it's simpler just
to remove that whole thing.
add a new rand-page generator

spew an ascii variant of a random number into the buffer
hush some more.