Linux Perf
mem2node.c File Reference
#include <linux/compiler.h>
#include <linux/bitmap.h>
#include "cpumap.h"
#include "mem2node.h"
#include "tests.h"
Include dependency graph for mem2node.c:

Go to the source code of this file.

Classes

struct  node
 

Macros

#define T   TEST_ASSERT_VAL
 

Functions

static unsigned long * get_bitmap (const char *str, int nbits)
 
int test__mem2node (struct test *t __maybe_unused, int subtest __maybe_unused)
 

Variables

static struct node test_nodes []
 

Macro Definition Documentation

◆ T

#define T   TEST_ASSERT_VAL

Definition at line 16 of file mem2node.c.

Function Documentation

◆ get_bitmap()

static unsigned long* get_bitmap ( const char *  str,
int  nbits 
)
static

Definition at line 18 of file mem2node.c.

Here is the call graph for this function:

◆ test__mem2node()

int test__mem2node ( struct test *t  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 42 of file mem2node.c.

Here is the call graph for this function:

Variable Documentation

◆ test_nodes

struct node test_nodes[]
static
Initial value:
= {
{ .node = 0, .map = "0" },
{ .node = 1, .map = "1-2" },
{ .node = 3, .map = "5-7,9" },
}