Home
last modified time | relevance | path

Searched refs:sym (Results 1 – 12 of 12) sorted by relevance

/kernel/
Dfail_function.c56 static struct fei_attr *fei_attr_new(const char *sym, unsigned long addr) in fei_attr_new() argument
62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); in fei_attr_new()
83 static struct fei_attr *fei_attr_lookup(const char *sym) in fei_attr_lookup() argument
88 if (!strcmp(attr->kp.symbol_name, sym)) in fei_attr_lookup()
241 char *buf, *sym; in fei_write() local
256 sym = strstrip(buf); in fei_write()
261 if (sym[0] == '\0') { in fei_write()
267 if (sym[0] == '!') { in fei_write()
268 attr = fei_attr_lookup(sym + 1); in fei_write()
278 addr = kallsyms_lookup_name(sym); in fei_write()
[all …]
Dmodule.c506 const struct kernel_symbol *sym; member
540 fsa->sym = &syms->start[symnum]; in check_exported_symbol()
545 static unsigned long kernel_symbol_value(const struct kernel_symbol *sym) in kernel_symbol_value() argument
548 return (unsigned long)offset_to_ptr(&sym->value_offset); in kernel_symbol_value()
550 return sym->value; in kernel_symbol_value()
554 static const char *kernel_symbol_name(const struct kernel_symbol *sym) in kernel_symbol_name() argument
557 return offset_to_ptr(&sym->name_offset); in kernel_symbol_name()
559 return sym->name; in kernel_symbol_name()
563 static const char *kernel_symbol_namespace(const struct kernel_symbol *sym) in kernel_symbol_namespace() argument
566 if (!sym->namespace_offset) in kernel_symbol_namespace()
[all …]
Dkexec_file.c1106 const Elf_Sym *sym; in kexec_purgatory_get_symbol_addr() local
1109 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_symbol_addr()
1110 if (!sym) in kexec_purgatory_get_symbol_addr()
1113 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr()
1119 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr()
1130 const Elf_Sym *sym; in kexec_purgatory_get_set_symbol() local
1134 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_set_symbol()
1135 if (!sym) in kexec_purgatory_get_set_symbol()
1138 if (sym->st_size != size) { in kexec_purgatory_get_set_symbol()
1140 name, (unsigned long)sym->st_size, size); in kexec_purgatory_get_set_symbol()
[all …]
Dkprobes.c128 .sym = KPROBE_INSN_PAGE_SYM,
197 PAGE_SIZE, false, c->sym); in __get_insn_slot()
222 kip->cache->sym); in collect_one_slot()
313 unsigned long *value, char *type, char *sym) in kprobe_cache_get_kallsym() argument
322 strlcpy(sym, c->sym, KSYM_NAME_LEN); in kprobe_cache_get_kallsym()
339 .sym = KPROBE_OPTINSN_PAGE_SYM,
2116 int kprobe_on_func_entry(kprobe_opcode_t *addr, const char *sym, unsigned long offset) in kprobe_on_func_entry() argument
2118 kprobe_opcode_t *kp_addr = _kprobe_addr(addr, sym, offset); in kprobe_on_func_entry()
2429 char *type, char *sym) in arch_kprobe_get_kallsym() argument
2435 char *sym) in kprobe_get_kallsym() argument
[all …]
Dmodule-internal.h27 unsigned int sym, str, mod, vers, info, pcpu; member
/kernel/livepatch/
Dcore.c202 Elf_Sym *sym; in klp_resolve_symbols() local
222 sym = (Elf_Sym *)sechdrs[symndx].sh_addr + ELF_R_SYM(relas[i].r_info); in klp_resolve_symbols()
223 if (sym->st_shndx != SHN_LIVEPATCH) { in klp_resolve_symbols()
225 strtab + sym->st_name); in klp_resolve_symbols()
230 cnt = sscanf(strtab + sym->st_name, in klp_resolve_symbols()
235 strtab + sym->st_name); in klp_resolve_symbols()
259 sym->st_value = addr; in klp_resolve_symbols()
/kernel/bpf/
Dcore.c553 char *sym = prog->aux->ksym.name; in bpf_prog_ksym_set_name() local
554 const char *end = sym + KSYM_NAME_LEN; in bpf_prog_ksym_set_name()
569 sym += snprintf(sym, KSYM_NAME_LEN, "bpf_prog_"); in bpf_prog_ksym_set_name()
570 sym = bin2hex(sym, prog->tag, sizeof(prog->tag)); in bpf_prog_ksym_set_name()
577 snprintf(sym, (size_t)(end - sym), "_%s", func_name); in bpf_prog_ksym_set_name()
582 snprintf(sym, (size_t)(end - sym), "_%s", prog->aux->name); in bpf_prog_ksym_set_name()
584 *sym = 0; in bpf_prog_ksym_set_name()
692 unsigned long *off, char *sym) in __bpf_address_lookup() argument
703 strncpy(sym, ksym->name, KSYM_NAME_LEN); in __bpf_address_lookup()
705 ret = sym; in __bpf_address_lookup()
[all …]
/kernel/time/
Dtimer_list.c45 static void print_name_offset(struct seq_file *m, void *sym) in print_name_offset() argument
49 if (lookup_symbol_name((unsigned long)sym, symname) < 0) in print_name_offset()
50 SEQ_printf(m, "<%pK>", sym); in print_name_offset()
/kernel/trace/
Dtrace_syscalls.c38 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument
46 return !strcmp(sym + 3, name + 3); in arch_syscall_match_sym_name()
Dtrace_output.c507 #define MARK(v, s) {.val = v, .sym = s}
511 char sym; member
532 return (i == size) ? ' ' : mark[i].sym; in trace_find_mark()
Dftrace.c6637 unsigned long *off, char *sym) in ftrace_func_address_lookup() argument
6655 if (sym) in ftrace_func_address_lookup()
6656 strlcpy(sym, found_func->name, KSYM_NAME_LEN); in ftrace_func_address_lookup()
6666 unsigned long *off, char **modname, char *sym) in ftrace_mod_address_lookup() argument
6674 ret = ftrace_func_address_lookup(mod_map, addr, size, off, sym); in ftrace_mod_address_lookup()
/kernel/events/
Dcore.c8637 const char *sym) in perf_event_ksymbol() argument
8651 strlcpy(name, sym, KSYM_NAME_LEN); in perf_event_ksymbol()