12 #include <linux/compiler.h> 13 #include <subcmd/parse-options.h> 23 if (machine == NULL) {
24 pr_err(
"Couldn't read /proc/kallsyms\n");
28 for (i = 0; i <
argc; ++i) {
33 printf(
"%s: not found\n", argv[i]);
37 printf(
"%s: %s %s %#" PRIx64
"-%#" PRIx64
" (%#" PRIx64
"-%#" PRIx64
")\n",
49 const struct option options[] = {
50 OPT_INCR(
'v',
"verbose", &
verbose,
"be more verbose (show counter open errors, etc)"),
53 const char *
const kallsyms_usage[] = {
54 "perf kallsyms [<options>] symbol_name",
58 argc = parse_options(argc, argv, options, kallsyms_usage, 0);
60 usage_with_options(kallsyms_usage, options);
const char * vmlinux_name
static struct symbol * machine__find_kernel_symbol_by_name(struct machine *machine, const char *name, struct map **mapp)
void machine__delete(struct machine *machine)
int symbol__init(struct perf_env *env)
u64(* unmap_ip)(struct map *, u64)
int cmd_kallsyms(int argc, const char **argv)
static int __cmd_kallsyms(int argc, const char **argv)
struct machine * machine__new_kallsyms(void)