#include "../perf.h"
#include "../util/util.h"
#include <subcmd/parse-options.h>
#include "../builtin.h"
#include "bench.h"
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <poll.h>
#include <limits.h>
#include <err.h>
#include <linux/time64.h>
Go to the source code of this file.
◆ DATASIZE
◆ bench_sched_messaging()
int bench_sched_messaging |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
◆ create_worker()
static pthread_t create_worker |
( |
void * |
ctx, |
|
|
void *(*)(void *) |
func |
|
) |
| |
|
static |
◆ fdpair()
static void fdpair |
( |
int |
fds[2] | ) |
|
|
static |
◆ group()
static unsigned int group |
( |
pthread_t * |
pth, |
|
|
unsigned int |
num_fds, |
|
|
int |
ready_out, |
|
|
int |
wakefd |
|
) |
| |
|
static |
◆ ready()
static void ready |
( |
int |
ready_out, |
|
|
int |
wakefd |
|
) |
| |
|
static |
◆ reap_worker()
static void reap_worker |
( |
pthread_t |
id | ) |
|
|
static |
◆ receiver()
◆ sender()
◆ bench_sched_message_usage
const char* const bench_sched_message_usage[] |
|
static |
Initial value:= {
"perf bench sched messaging <options>",
NULL
}
Definition at line 259 of file sched-messaging.c.
◆ nr_loops
unsigned int nr_loops = 100 |
|
static |
◆ num_groups
unsigned int num_groups = 10 |
|
static |
◆ options
Initial value:= {
"Use pipe() instead of socketpair()"),
"Be multi thread instead of multi process"),
OPT_UINTEGER(
'g',
"group", &
num_groups,
"Specify number of groups"),
OPT_UINTEGER(
'l',
"nr_loops", &
nr_loops,
"Specify the number of loops to run (default: 100)"),
}
static unsigned int num_groups
static unsigned int nr_loops
Definition at line 249 of file sched-messaging.c.
◆ thread_mode
◆ use_pipes