/* * We don't need to try to find objdump path for native system. * Just use default binutils path (e.g.: "objdump").
*/ if (!strcmp(perf_env__arch(NULL), arch)) goto out;
cross_env = getenv("CROSS_COMPILE"); if (cross_env) { if (asprintf(&buf, "%s%s", cross_env, name) < 0) goto out_error; if (buf[0] == '/') { if (access(buf, F_OK) == 0) goto out; goto out_error;
} if (lookup_path(buf)) goto out;
zfree(&buf);
}
idx = lookup_triplets(path_list, name); if (idx < 0) {
ui__error("Please install %s for %s.\n" "You can add it to PATH, set CROSS_COMPILE or " "override the default using --%s.\n",
name, arch, name); goto out_error;
}
if (asprintf(&buf, "%s%s", path_list[idx], name) < 0) goto out_error;
int perf_env__lookup_objdump(struct perf_env *env, char **path)
{ /* * For live mode, env->arch will be NULL and we can use * the native objdump tool.
*/ if (env->arch == NULL) return 0;
/* * Some architectures have a single address space for kernel and user addresses, * which makes it possible to determine if an address is in kernel space or user * space.
*/ bool perf_env__single_address_space(struct perf_env *env)
{ return strcmp(perf_env__arch(env), "sparc");
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.