Linux Perf
env.c File Reference
#include "cpumap.h"
#include "env.h"
#include "sane_ctype.h"
#include "util.h"
#include <errno.h>
#include <sys/utsname.h>
Include dependency graph for env.c:

Go to the source code of this file.

Functions

void perf_env__exit (struct perf_env *env)
 
int perf_env__set_cmdline (struct perf_env *env, int argc, const char *argv[])
 
int perf_env__read_cpu_topology_map (struct perf_env *env)
 
static int perf_env__read_arch (struct perf_env *env)
 
static int perf_env__read_nr_cpus_avail (struct perf_env *env)
 
const char * perf_env__raw_arch (struct perf_env *env)
 
int perf_env__nr_cpus_avail (struct perf_env *env)
 
void cpu_cache_level__free (struct cpu_cache_level *cache)
 
static const char * normalize_arch (char *arch)
 
const char * perf_env__arch (struct perf_env *env)
 

Variables

struct perf_env perf_env
 

Function Documentation

◆ cpu_cache_level__free()

void cpu_cache_level__free ( struct cpu_cache_level cache)

Definition at line 127 of file env.c.

Here is the call graph for this function:

◆ normalize_arch()

static const char* normalize_arch ( char *  arch)
static

Definition at line 138 of file env.c.

◆ perf_env__arch()

const char* perf_env__arch ( struct perf_env env)

Definition at line 164 of file env.c.

Here is the call graph for this function:

◆ perf_env__exit()

void perf_env__exit ( struct perf_env env)

Definition at line 11 of file env.c.

Here is the call graph for this function:

◆ perf_env__nr_cpus_avail()

int perf_env__nr_cpus_avail ( struct perf_env env)

Definition at line 122 of file env.c.

Here is the call graph for this function:

◆ perf_env__raw_arch()

const char* perf_env__raw_arch ( struct perf_env env)

Definition at line 117 of file env.c.

Here is the call graph for this function:

◆ perf_env__read_arch()

static int perf_env__read_arch ( struct perf_env env)
static

Definition at line 96 of file env.c.

◆ perf_env__read_cpu_topology_map()

int perf_env__read_cpu_topology_map ( struct perf_env env)

Definition at line 69 of file env.c.

Here is the call graph for this function:

◆ perf_env__read_nr_cpus_avail()

static int perf_env__read_nr_cpus_avail ( struct perf_env env)
static

Definition at line 109 of file env.c.

Here is the call graph for this function:

◆ perf_env__set_cmdline()

int perf_env__set_cmdline ( struct perf_env env,
int  argc,
const char *  argv[] 
)

Definition at line 41 of file env.c.

Variable Documentation

◆ perf_env

Definition at line 9 of file env.c.