Linux Perf
mem2node.c File Reference
#include <errno.h>
#include <inttypes.h>
#include <linux/bitmap.h>
#include "mem2node.h"
#include "util.h"
Include dependency graph for mem2node.c:

Go to the source code of this file.

Classes

struct  phys_entry
 

Functions

static void phys_entry__insert (struct phys_entry *entry, struct rb_root *root)
 
static void phys_entry__init (struct phys_entry *entry, u64 start, u64 bsize, u64 node)
 
int mem2node__init (struct mem2node *map, struct perf_env *env)
 
void mem2node__exit (struct mem2node *map)
 
int mem2node__node (struct mem2node *map, u64 addr)
 

Function Documentation

◆ mem2node__exit()

void mem2node__exit ( struct mem2node map)

Definition at line 109 of file mem2node.c.

◆ mem2node__init()

int mem2node__init ( struct mem2node map,
struct perf_env env 
)

Definition at line 43 of file mem2node.c.

Here is the call graph for this function:

◆ mem2node__node()

int mem2node__node ( struct mem2node map,
u64  addr 
)

Definition at line 114 of file mem2node.c.

Here is the call graph for this function:

◆ phys_entry__init()

static void phys_entry__init ( struct phys_entry entry,
u64  start,
u64  bsize,
u64  node 
)
static

Definition at line 35 of file mem2node.c.

◆ phys_entry__insert()

static void phys_entry__insert ( struct phys_entry entry,
struct rb_root *  root 
)
static

Definition at line 14 of file mem2node.c.