Linux Perf
builtin-config.c File Reference
#include "builtin.h"
#include "perf.h"
#include "util/cache.h"
#include <subcmd/parse-options.h>
#include "util/util.h"
#include "util/debug.h"
#include "util/config.h"
#include <linux/string.h>
Include dependency graph for builtin-config.c:

Go to the source code of this file.

Enumerations

enum  actions { ACTION_LIST = 1 }
 

Functions

static int set_config (struct perf_config_set *set, const char *file_name)
 
static int show_spec_config (struct perf_config_set *set, const char *var)
 
static int show_config (struct perf_config_set *set)
 
static int parse_config_arg (char *arg, char **var, char **value)
 
int cmd_config (int argc, const char **argv)
 

Variables

static bool use_system_config
 
static bool use_user_config
 
static const char *const config_usage []
 
enum actions actions
 
static struct option config_options []
 

Enumeration Type Documentation

◆ actions

enum actions
Enumerator
ACTION_LIST 

Definition at line 26 of file builtin-config.c.

Function Documentation

◆ cmd_config()

int cmd_config ( int  argc,
const char **  argv 
)

Definition at line 157 of file builtin-config.c.

Here is the call graph for this function:

◆ parse_config_arg()

static int parse_config_arg ( char *  arg,
char **  var,
char **  value 
)
static

Definition at line 122 of file builtin-config.c.

◆ set_config()

static int set_config ( struct perf_config_set set,
const char *  file_name 
)
static

Definition at line 38 of file builtin-config.c.

◆ show_config()

static int show_config ( struct perf_config_set set)
static

Definition at line 103 of file builtin-config.c.

◆ show_spec_config()

static int show_spec_config ( struct perf_config_set set,
const char *  var 
)
static

Definition at line 73 of file builtin-config.c.

Variable Documentation

◆ actions

◆ config_options

struct option config_options[]
static
Initial value:
= {
OPT_SET_UINT('l', "list", &actions,
"show current config variables", ACTION_LIST),
OPT_BOOLEAN(0, "system", &use_system_config, "use system config file"),
OPT_BOOLEAN(0, "user", &use_user_config, "use user config file"),
}
static bool use_system_config
actions
static bool use_user_config

Definition at line 30 of file builtin-config.c.

◆ config_usage

const char* const config_usage[]
static
Initial value:
= {
"perf config [<file-option>] [options] [section.name[=value] ...]",
NULL
}

Definition at line 21 of file builtin-config.c.

◆ use_system_config

bool use_system_config
static

Definition at line 19 of file builtin-config.c.

◆ use_user_config

bool use_user_config
static

Definition at line 19 of file builtin-config.c.