Linux Perf
strbuf.c File Reference
#include "debug.h"
#include "util.h"
#include <linux/kernel.h>
#include <errno.h>
Include dependency graph for strbuf.c:

Go to the source code of this file.

Functions

int strbuf_init (struct strbuf *sb, ssize_t hint)
 
void strbuf_release (struct strbuf *sb)
 
char * strbuf_detach (struct strbuf *sb, size_t *sz)
 
int strbuf_grow (struct strbuf *sb, size_t extra)
 
int strbuf_addch (struct strbuf *sb, int c)
 
int strbuf_add (struct strbuf *sb, const void *data, size_t len)
 
static int strbuf_addv (struct strbuf *sb, const char *fmt, va_list ap)
 
int strbuf_addf (struct strbuf *sb, const char *fmt,...)
 
ssize_t strbuf_read (struct strbuf *sb, int fd, ssize_t hint)
 

Variables

char strbuf_slopbuf [1]
 

Function Documentation

◆ strbuf_add()

int strbuf_add ( struct strbuf sb,
const void *  data,
size_t  len 
)

Definition at line 78 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_addch()

int strbuf_addch ( struct strbuf sb,
int  c 
)

Definition at line 67 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_addf()

int strbuf_addf ( struct strbuf sb,
const char *  fmt,
  ... 
)

Definition at line 117 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_addv()

static int strbuf_addv ( struct strbuf sb,
const char *  fmt,
va_list  ap 
)
static

Definition at line 88 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_detach()

char* strbuf_detach ( struct strbuf sb,
size_t *  sz 
)

Definition at line 31 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_grow()

int strbuf_grow ( struct strbuf sb,
size_t  extra 
)

Definition at line 40 of file strbuf.c.

◆ strbuf_init()

int strbuf_init ( struct strbuf sb,
ssize_t  hint 
)

Definition at line 14 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_read()

ssize_t strbuf_read ( struct strbuf sb,
int  fd,
ssize_t  hint 
)

Definition at line 128 of file strbuf.c.

Here is the call graph for this function:

◆ strbuf_release()

void strbuf_release ( struct strbuf sb)

Definition at line 23 of file strbuf.c.

Here is the call graph for this function:

Variable Documentation

◆ strbuf_slopbuf

char strbuf_slopbuf[1]

Definition at line 12 of file strbuf.c.