Linux Perf
cache.h File Reference
#include "strbuf.h"
#include <subcmd/pager.h>
#include "../ui/ui.h"
#include <linux/compiler.h>
#include <linux/string.h>
Include dependency graph for cache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CMD_EXEC_PATH   "--exec-path"
 
#define CMD_DEBUGFS_DIR   "--debugfs-dir="
 
#define EXEC_PATH_ENVIRONMENT   "PERF_EXEC_PATH"
 
#define PERF_DEBUGFS_ENVIRONMENT   "PERF_DEBUGFS_DIR"
 
#define PERF_TRACEFS_ENVIRONMENT   "PERF_TRACEFS_DIR"
 
#define PERF_PAGER_ENVIRONMENT   "PERF_PAGER"
 
#define alloc_nr(x)   (((x)+16)*3/2)
 

Functions

int split_cmdline (char *cmdline, const char ***argv)
 
static int is_absolute_path (const char *path)
 
char * mkpath (const char *fmt,...) __printf(1
 

Macro Definition Documentation

◆ alloc_nr

#define alloc_nr (   x)    (((x)+16)*3/2)

Definition at line 22 of file cache.h.

◆ CMD_DEBUGFS_DIR

#define CMD_DEBUGFS_DIR   "--debugfs-dir="

Definition at line 13 of file cache.h.

◆ CMD_EXEC_PATH

#define CMD_EXEC_PATH   "--exec-path"

Definition at line 12 of file cache.h.

◆ EXEC_PATH_ENVIRONMENT

#define EXEC_PATH_ENVIRONMENT   "PERF_EXEC_PATH"

Definition at line 15 of file cache.h.

◆ PERF_DEBUGFS_ENVIRONMENT

#define PERF_DEBUGFS_ENVIRONMENT   "PERF_DEBUGFS_DIR"

Definition at line 16 of file cache.h.

◆ PERF_PAGER_ENVIRONMENT

#define PERF_PAGER_ENVIRONMENT   "PERF_PAGER"

Definition at line 18 of file cache.h.

◆ PERF_TRACEFS_ENVIRONMENT

#define PERF_TRACEFS_ENVIRONMENT   "PERF_TRACEFS_DIR"

Definition at line 17 of file cache.h.

Function Documentation

◆ is_absolute_path()

static int is_absolute_path ( const char *  path)
inlinestatic

Definition at line 24 of file cache.h.

Here is the call graph for this function:

◆ mkpath()

char* mkpath ( const char *  fmt,
  ... 
)

◆ split_cmdline()

int split_cmdline ( char *  cmdline,
const char ***  argv 
)