Linux Perf
common.c File Reference
#include <stdio.h>
#include "common.h"
#include "../util/env.h"
#include "../util/util.h"
#include "../util/debug.h"
Include dependency graph for common.c:

Go to the source code of this file.

Functions

static bool lookup_path (char *name)
 
static int lookup_triplets (const char *const *triplets, const char *name)
 
static int perf_env__lookup_binutils_path (struct perf_env *env, const char *name, const char **path)
 
int perf_env__lookup_objdump (struct perf_env *env, const char **path)
 

Variables

const char *const arm_triplets []
 
const char *const arm64_triplets []
 
const char *const powerpc_triplets []
 
const char *const s390_triplets []
 
const char *const sh_triplets []
 
const char *const sparc_triplets []
 
const char *const x86_triplets []
 
const char *const mips_triplets []
 

Function Documentation

◆ lookup_path()

static bool lookup_path ( char *  name)
static

Definition at line 81 of file common.c.

Here is the call graph for this function:

◆ lookup_triplets()

static int lookup_triplets ( const char *const *  triplets,
const char *  name 
)
static

Definition at line 108 of file common.c.

Here is the call graph for this function:

◆ perf_env__lookup_binutils_path()

static int perf_env__lookup_binutils_path ( struct perf_env env,
const char *  name,
const char **  path 
)
static

Definition at line 121 of file common.c.

Here is the call graph for this function:

◆ perf_env__lookup_objdump()

int perf_env__lookup_objdump ( struct perf_env env,
const char **  path 
)

Definition at line 192 of file common.c.

Here is the call graph for this function:

Variable Documentation

◆ arm64_triplets

const char* const arm64_triplets[]
Initial value:
= {
"aarch64-linux-android-",
"aarch64-linux-gnu-",
NULL
}

Definition at line 20 of file common.c.

◆ arm_triplets

const char* const arm_triplets[]
Initial value:
= {
"arm-eabi-",
"arm-linux-androideabi-",
"arm-unknown-linux-",
"arm-unknown-linux-gnu-",
"arm-unknown-linux-gnueabi-",
"arm-linux-gnu-",
"arm-linux-gnueabihf-",
"arm-none-eabi-",
NULL
}

Definition at line 8 of file common.c.

◆ mips_triplets

const char* const mips_triplets[]
Initial value:
= {
"mips-unknown-linux-gnu-",
"mipsel-linux-android-",
"mips-linux-gnu-",
"mips64-linux-gnu-",
"mips64el-linux-gnuabi64-",
"mips64-linux-gnuabi64-",
"mipsel-linux-gnu-",
NULL
}

Definition at line 70 of file common.c.

◆ powerpc_triplets

const char* const powerpc_triplets[]
Initial value:
= {
"powerpc-unknown-linux-gnu-",
"powerpc-linux-gnu-",
"powerpc64-unknown-linux-gnu-",
"powerpc64-linux-gnu-",
"powerpc64le-linux-gnu-",
NULL
}

Definition at line 26 of file common.c.

◆ s390_triplets

const char* const s390_triplets[]
Initial value:
= {
"s390-ibm-linux-",
"s390x-linux-gnu-",
NULL
}

Definition at line 35 of file common.c.

◆ sh_triplets

const char* const sh_triplets[]
Initial value:
= {
"sh-unknown-linux-gnu-",
"sh64-unknown-linux-gnu-",
"sh-linux-gnu-",
"sh64-linux-gnu-",
NULL
}

Definition at line 41 of file common.c.

◆ sparc_triplets

const char* const sparc_triplets[]
Initial value:
= {
"sparc-unknown-linux-gnu-",
"sparc64-unknown-linux-gnu-",
"sparc64-linux-gnu-",
NULL
}

Definition at line 49 of file common.c.

◆ x86_triplets

const char* const x86_triplets[]
Initial value:
= {
"x86_64-pc-linux-gnu-",
"x86_64-unknown-linux-gnu-",
"i686-pc-linux-gnu-",
"i586-pc-linux-gnu-",
"i486-pc-linux-gnu-",
"i386-pc-linux-gnu-",
"i686-linux-android-",
"i686-android-linux-",
"x86_64-linux-gnu-",
"i586-linux-gnu-",
NULL
}

Definition at line 56 of file common.c.