Linux Perf
strlist.c File Reference
#include "strlist.h"
#include "util.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for strlist.c:

Go to the source code of this file.

Functions

static struct rb_node * strlist__node_new (struct rblist *rblist, const void *entry)
 
static void str_node__delete (struct str_node *snode, bool dupstr)
 
static void strlist__node_delete (struct rblist *rblist, struct rb_node *rb_node)
 
static int strlist__node_cmp (struct rb_node *rb_node, const void *entry)
 
int strlist__add (struct strlist *slist, const char *new_entry)
 
int strlist__load (struct strlist *slist, const char *filename)
 
void strlist__remove (struct strlist *slist, struct str_node *snode)
 
struct str_nodestrlist__find (struct strlist *slist, const char *entry)
 
static int strlist__parse_list_entry (struct strlist *slist, const char *s, const char *subst_dir)
 
static int strlist__parse_list (struct strlist *slist, const char *s, const char *subst_dir)
 
struct strliststrlist__new (const char *list, const struct strlist_config *config)
 
void strlist__delete (struct strlist *slist)
 
struct str_nodestrlist__entry (const struct strlist *slist, unsigned int idx)
 

Function Documentation

◆ str_node__delete()

static void str_node__delete ( struct str_node snode,
bool  dupstr 
)
static

Definition at line 40 of file strlist.c.

Here is the call graph for this function:

◆ strlist__add()

int strlist__add ( struct strlist slist,
const char *  new_entry 
)

Definition at line 64 of file strlist.c.

Here is the call graph for this function:

◆ strlist__delete()

void strlist__delete ( struct strlist slist)

Definition at line 193 of file strlist.c.

Here is the call graph for this function:

◆ strlist__entry()

struct str_node* strlist__entry ( const struct strlist slist,
unsigned int  idx 
)

Definition at line 199 of file strlist.c.

Here is the call graph for this function:

◆ strlist__find()

struct str_node* strlist__find ( struct strlist slist,
const char *  entry 
)

Definition at line 101 of file strlist.c.

Here is the call graph for this function:

◆ strlist__load()

int strlist__load ( struct strlist slist,
const char *  filename 
)

Definition at line 69 of file strlist.c.

Here is the call graph for this function:

◆ strlist__new()

struct strlist* strlist__new ( const char *  list,
const struct strlist_config config 
)

Definition at line 160 of file strlist.c.

Here is the call graph for this function:

◆ strlist__node_cmp()

static int strlist__node_cmp ( struct rb_node *  rb_node,
const void *  entry 
)
static

Definition at line 56 of file strlist.c.

Here is the call graph for this function:

◆ strlist__node_delete()

static void strlist__node_delete ( struct rblist rblist,
struct rb_node *  rb_node 
)
static

Definition at line 48 of file strlist.c.

Here is the call graph for this function:

◆ strlist__node_new()

static struct rb_node* strlist__node_new ( struct rblist rblist,
const void *  entry 
)
static

Definition at line 16 of file strlist.c.

Here is the call graph for this function:

◆ strlist__parse_list()

static int strlist__parse_list ( struct strlist slist,
const char *  s,
const char *  subst_dir 
)
static

Definition at line 143 of file strlist.c.

Here is the call graph for this function:

◆ strlist__parse_list_entry()

static int strlist__parse_list_entry ( struct strlist slist,
const char *  s,
const char *  subst_dir 
)
static

Definition at line 112 of file strlist.c.

Here is the call graph for this function:

◆ strlist__remove()

void strlist__remove ( struct strlist slist,
struct str_node snode 
)

Definition at line 96 of file strlist.c.

Here is the call graph for this function: