Linux Perf
sched-pipe.c File Reference
#include "../perf.h"
#include "../util/util.h"
#include <subcmd/parse-options.h>
#include "../builtin.h"
#include "bench.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <linux/time64.h>
#include <pthread.h>
Include dependency graph for sched-pipe.c:

Go to the source code of this file.

Classes

struct  thread_data
 

Macros

#define LOOPS_DEFAULT   1000000
 

Functions

static void * worker_thread (void *__tdata)
 
int bench_sched_pipe (int argc, const char **argv)
 

Variables

static int loops = LOOPS_DEFAULT
 
static bool threaded
 
static const struct option options []
 
static const char *const bench_sched_pipe_usage []
 

Macro Definition Documentation

◆ LOOPS_DEFAULT

#define LOOPS_DEFAULT   1000000

Definition at line 40 of file sched-pipe.c.

Function Documentation

◆ bench_sched_pipe()

int bench_sched_pipe ( int  argc,
const char **  argv 
)

Definition at line 80 of file sched-pipe.c.

Here is the call graph for this function:

◆ worker_thread()

static void* worker_thread ( void *  __tdata)
static

Definition at line 57 of file sched-pipe.c.

Variable Documentation

◆ bench_sched_pipe_usage

const char* const bench_sched_pipe_usage[]
static
Initial value:
= {
"perf bench sched pipe <options>",
NULL
}

Definition at line 52 of file sched-pipe.c.

◆ loops

int loops = LOOPS_DEFAULT
static

Definition at line 41 of file sched-pipe.c.

◆ options

const struct option options[]
static
Initial value:
= {
OPT_INTEGER('l', "loop", &loops, "Specify number of loops"),
OPT_BOOLEAN('T', "threaded", &threaded, "Specify threads/process based task setup"),
}
static int loops
Definition: sched-pipe.c:41
static bool threaded
Definition: sched-pipe.c:44

Definition at line 46 of file sched-pipe.c.

◆ threaded

bool threaded
static

Definition at line 44 of file sched-pipe.c.