Linux Perf
pmu.c File Reference
#include "parse-events.h"
#include "pmu.h"
#include "util.h"
#include "tests.h"
#include <errno.h>
#include <linux/kernel.h>
Include dependency graph for pmu.c:

Go to the source code of this file.

Classes

struct  test_format
 

Functions

static char * test_format_dir_get (void)
 
static int test_format_dir_put (char *dir)
 
static struct list_head * test_terms_list (void)
 
int test__pmu (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Variables

static struct test_format test_formats []
 
static struct parse_events_term test_terms []
 

Function Documentation

◆ test__pmu()

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

Definition at line 139 of file pmu.c.

Here is the call graph for this function:

◆ test_format_dir_get()

static char* test_format_dir_get ( void  )
static

Definition at line 87 of file pmu.c.

◆ test_format_dir_put()

static int test_format_dir_put ( char *  dir)
static

Definition at line 117 of file pmu.c.

◆ test_terms_list()

static struct list_head* test_terms_list ( void  )
static

Definition at line 128 of file pmu.c.

Here is the call graph for this function:

Variable Documentation

◆ test_formats

struct test_format test_formats[]
static
Initial value:
= {
{ "krava01", "config:0-1,62-63\n", },
{ "krava02", "config:10-17\n", },
{ "krava03", "config:5\n", },
{ "krava11", "config1:0,2,4,6,8,20-28\n", },
{ "krava12", "config1:63\n", },
{ "krava13", "config1:45-47\n", },
{ "krava21", "config2:0-3,10-13,20-23,30-33,40-43,50-53,60-63\n", },
{ "krava22", "config2:8,18,48,58\n", },
{ "krava23", "config2:28-29,38\n", },
}

◆ test_terms

struct parse_events_term test_terms[]
static

Definition at line 26 of file pmu.c.