Linux Perf
backward-ring-buffer.c File Reference
#include <perf.h>
#include <evlist.h>
#include <sys/prctl.h>
#include "tests.h"
#include "debug.h"
#include <errno.h>
Include dependency graph for backward-ring-buffer.c:

Go to the source code of this file.

Macros

#define NR_ITERS   111
 

Functions

static void testcase (void)
 
static int count_samples (struct perf_evlist *evlist, int *sample_count, int *comm_count)
 
static int do_test (struct perf_evlist *evlist, int mmap_pages, int *sample_count, int *comm_count)
 
int test__backward_ring_buffer (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ NR_ITERS

#define NR_ITERS   111

Definition at line 14 of file backward-ring-buffer.c.

Function Documentation

◆ count_samples()

static int count_samples ( struct perf_evlist evlist,
int *  sample_count,
int *  comm_count 
)
static

Definition at line 28 of file backward-ring-buffer.c.

Here is the call graph for this function:

◆ do_test()

static int do_test ( struct perf_evlist evlist,
int  mmap_pages,
int *  sample_count,
int *  comm_count 
)
static

Definition at line 58 of file backward-ring-buffer.c.

Here is the call graph for this function:

◆ test__backward_ring_buffer()

int test__backward_ring_buffer ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 81 of file backward-ring-buffer.c.

Here is the call graph for this function:

◆ testcase()

static void testcase ( void  )
static

Definition at line 16 of file backward-ring-buffer.c.