Skip to content

Commit

Permalink
make iovec's with a single element half the time
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelslacker committed Feb 27, 2017
1 parent bd34a3b commit 4e03dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generate-args.c
Expand Up @@ -169,7 +169,10 @@ static unsigned long handle_arg_iovec(struct syscallentry *entry, struct syscall
{
unsigned long num_entries;

num_entries = RAND_RANGE(1, 256);
if (RAND_BOOL())
num_entries = 1;
else
num_entries = RAND_RANGE(1, 256);

switch (argnum) {
case 1: if (entry->arg2type == ARG_IOVECLEN)
Expand Down

0 comments on commit 4e03dd2

Please sign in to comment.