Linux Perf
config.h File Reference
#include <stdbool.h>
#include <linux/list.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  perf_config_item
 
struct  perf_config_section
 
struct  perf_config_set
 

Macros

#define perf_config_sections__for_each_entry(list, section)   list_for_each_entry(section, list, node)
 
#define perf_config_items__for_each_entry(list, item)   list_for_each_entry(item, list, node)
 
#define perf_config_set__for_each_entry(set, section, item)
 

Typedefs

typedef int(* config_fn_t) (const char *, const char *, void *)
 

Functions

int perf_default_config (const char *, const char *, void *)
 
int perf_config (config_fn_t fn, void *)
 
int perf_config_int (int *dest, const char *, const char *)
 
int perf_config_u64 (u64 *dest, const char *, const char *)
 
int perf_config_bool (const char *, const char *)
 
int config_error_nonbool (const char *)
 
const char * perf_etc_perfconfig (void)
 
struct perf_config_setperf_config_set__new (void)
 
void perf_config_set__delete (struct perf_config_set *set)
 
int perf_config_set__collect (struct perf_config_set *set, const char *file_name, const char *var, const char *value)
 
void perf_config__exit (void)
 
void perf_config__refresh (void)
 

Variables

const char * config_exclusive_filename
 

Macro Definition Documentation

◆ perf_config_items__for_each_entry

#define perf_config_items__for_each_entry (   list,
  item 
)    list_for_each_entry(item, list, node)

perf_config_items__for_each - iterate thru all the items : list_head instance to iterate : struct perf_config_item iterator

Definition at line 57 of file config.h.

◆ perf_config_sections__for_each_entry

#define perf_config_sections__for_each_entry (   list,
  section 
)    list_for_each_entry(section, list, node)

perf_config_sections__for_each - iterate thru all the sections : list_head instance to iterate

Definition at line 49 of file config.h.

◆ perf_config_set__for_each_entry

#define perf_config_set__for_each_entry (   set,
  section,
  item 
)
Value:
perf_config_sections__for_each_entry(&set->sections, section) \
perf_config_items__for_each_entry(&section->items, item)
#define perf_config_sections__for_each_entry(list, section)
Definition: config.h:49

perf_config_set__for_each - iterate thru all the config section-item pairs : evlist instance to iterate

Definition at line 66 of file config.h.

Typedef Documentation

◆ config_fn_t

typedef int(* config_fn_t) (const char *, const char *, void *)

Definition at line 28 of file config.h.

Function Documentation

◆ config_error_nonbool()

int config_error_nonbool ( const char *  )

Definition at line 805 of file config.c.

◆ perf_config()

int perf_config ( config_fn_t  fn,
void *   
)

Definition at line 718 of file config.c.

Here is the call graph for this function:

◆ perf_config__exit()

void perf_config__exit ( void  )

Definition at line 746 of file config.c.

Here is the call graph for this function:

◆ perf_config__refresh()

void perf_config__refresh ( void  )

Definition at line 752 of file config.c.

Here is the call graph for this function:

◆ perf_config_bool()

int perf_config_bool ( const char *  ,
const char *   
)

Definition at line 389 of file config.c.

Here is the call graph for this function:

◆ perf_config_int()

int perf_config_int ( int *  dest,
const char *  ,
const char *   
)

Definition at line 361 of file config.c.

Here is the call graph for this function:

◆ perf_config_set__collect()

int perf_config_set__collect ( struct perf_config_set set,
const char *  file_name,
const char *  var,
const char *  value 
)

Definition at line 638 of file config.c.

Here is the call graph for this function:

◆ perf_config_set__delete()

void perf_config_set__delete ( struct perf_config_set set)

Definition at line 792 of file config.c.

Here is the call graph for this function:

◆ perf_config_set__new()

struct perf_config_set* perf_config_set__new ( void  )

Definition at line 698 of file config.c.

Here is the call graph for this function:

◆ perf_config_u64()

int perf_config_u64 ( u64 *  dest,
const char *  ,
const char *   
)

Definition at line 348 of file config.c.

Here is the call graph for this function:

◆ perf_default_config()

int perf_default_config ( const char *  ,
const char *  ,
void *   
)

◆ perf_etc_perfconfig()

const char* perf_etc_perfconfig ( void  )

Definition at line 478 of file config.c.

Variable Documentation

◆ config_exclusive_filename

const char* config_exclusive_filename

Definition at line 40 of file config.c.