/kernel/linux/linux-6.6/kernel/module/ |
H A D | kallsyms.c | 3 * Module kallsyms support 10 #include <linux/kallsyms.h> 182 mod->kallsyms = (void __rcu *)init_data_base + in add_kallsyms() 187 rcu_dereference(mod->kallsyms)->symtab = (void *)symsec->sh_addr; in add_kallsyms() 188 rcu_dereference(mod->kallsyms)->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 190 rcu_dereference(mod->kallsyms)->strtab = in add_kallsyms() 192 rcu_dereference(mod->kallsyms)->typetab = init_data_base + info->init_typeoffs; in add_kallsyms() 195 * Now populate the cut down core kallsyms for after init in add_kallsyms() 202 src = rcu_dereference(mod->kallsyms)->symtab; in add_kallsyms() 203 for (ndst = i = 0; i < rcu_dereference(mod->kallsyms) in add_kallsyms() 247 kallsyms_symbol_name(struct mod_kallsyms *kallsyms, unsigned int symnum) kallsyms_symbol_name() argument 263 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); find_kallsyms_symbol() local 391 struct mod_kallsyms *kallsyms; module_get_kallsym() local 417 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); __find_kallsyms_symbol_value() local 486 struct mod_kallsyms *kallsyms; module_kallsyms_on_each_symbol() local [all...] |
H A D | Makefile | 19 obj-$(CONFIG_KALLSYMS) += kallsyms.o
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | vmlinux-kallsyms.c | 23 struct machine kallsyms, vmlinux; in test__vmlinux_matches_kallsyms() local 32 * both vmlinux + .ko files and from /proc/kallsyms split by modules. in test__vmlinux_matches_kallsyms() 34 machine__init(&kallsyms, "", HOST_KERNEL_ID); in test__vmlinux_matches_kallsyms() 40 * Create the kernel maps for kallsyms and the DSO where we will then in test__vmlinux_matches_kallsyms() 41 * load /proc/kallsyms. Also create the modules maps from /proc/modules in test__vmlinux_matches_kallsyms() 44 if (machine__create_kernel_maps(&kallsyms) < 0) { in test__vmlinux_matches_kallsyms() 52 * Load and split /proc/kallsyms into multiple maps, one per module. in test__vmlinux_matches_kallsyms() 58 * code and with the one got from /proc/modules from the "kallsyms" code. in test__vmlinux_matches_kallsyms() 60 if (machine__load_kallsyms(&kallsyms, "/proc/kallsyms") < in test__vmlinux_matches_kallsyms() [all...] |
/kernel/linux/linux-5.10/tools/perf/scripts/python/ |
H A D | net_dropmonitor.py | 17 kallsyms = [] variable 20 global kallsyms 23 f = open("/proc/kallsyms", "r") 30 kallsyms.append((loc, name)) 31 kallsyms.sort() 36 # Invariant: kallsyms[i][0] <= loc for all 0 <= i <= start 37 # kallsyms[i][0] > loc for all end <= i < len(kallsyms) 38 start, end = -1, len(kallsyms) 41 if loc < kallsyms[pivo [all...] |
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | net_dropmonitor.py | 17 kallsyms = [] variable 20 global kallsyms 23 f = open("/proc/kallsyms", "r") 30 kallsyms.append((loc, name)) 31 kallsyms.sort() 36 # Invariant: kallsyms[i][0] <= loc for all 0 <= i <= start 37 # kallsyms[i][0] > loc for all end <= i < len(kallsyms) 38 start, end = -1, len(kallsyms) 41 if loc < kallsyms[pivo [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | vmlinux-kallsyms.c | 123 struct machine kallsyms, vmlinux; in test__vmlinux_matches_kallsyms() local 132 * both vmlinux + .ko files and from /proc/kallsyms split by modules. in test__vmlinux_matches_kallsyms() 134 machine__init(&kallsyms, "", HOST_KERNEL_ID); in test__vmlinux_matches_kallsyms() 142 * Create the kernel maps for kallsyms and the DSO where we will then in test__vmlinux_matches_kallsyms() 143 * load /proc/kallsyms. Also create the modules maps from /proc/modules in test__vmlinux_matches_kallsyms() 146 if (machine__create_kernel_maps(&kallsyms) < 0) { in test__vmlinux_matches_kallsyms() 155 * Load and split /proc/kallsyms into multiple maps, one per module. in test__vmlinux_matches_kallsyms() 161 * code and with the one got from /proc/modules from the "kallsyms" code. in test__vmlinux_matches_kallsyms() 163 if (machine__load_kallsyms(&kallsyms, "/proc/kallsyms") < in test__vmlinux_matches_kallsyms() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | link-vmlinux.sh | 92 # The kallsyms linking does not need debug symbols included. 93 if [ "$output" != "${output#.tmp_vmlinux.kallsyms}" ] ; then 148 kallsyms() function 169 scripts/kallsyms ${kallsymopt} ${1} > ${2} 172 # Perform one step in kallsyms generation, including temporary linking of 177 kallsyms_vmlinux=.tmp_vmlinux.kallsyms${1} 183 kallsyms ${kallsyms_vmlinux}.syms ${kallsyms_S} 242 # kallsyms support 247 # Running kallsyms on that gives us .tmp_kallsyms1.o with 255 # introduces new names, which further expands kallsyms [all...] |
/kernel/linux/linux-5.10/scripts/ |
H A D | link-vmlinux.sh | 148 # The kallsyms linking does not need debug symbols included. 149 if [ "$output" != "${output#.tmp_vmlinux.kallsyms}" ] ; then 235 kallsyms() function 252 ${NM} -n ${1} | scripts/kallsyms ${kallsymopt} > ${2} 255 # Perform one step in kallsyms generation, including temporary linking of 260 kallsyms_vmlinux=.tmp_vmlinux.kallsyms${1} 265 kallsyms ${kallsyms_vmlinux} ${kallsyms_S} 369 # kallsyms support 374 # Running kallsyms on that gives us .tmp_kallsyms1.o with 382 # introduces new names, which further expands kallsyms [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | module.c | 16 #include <linux/kallsyms.h> 2248 /* Unlink carefully: kallsyms could be walking list. */ in free_module() 2826 mod->kallsyms = mod->init_layout.base + info->mod_kallsyms_init_off; in add_kallsyms() 2828 mod->kallsyms->symtab = (void *)symsec->sh_addr; in add_kallsyms() 2829 mod->kallsyms->num_symtab = symsec->sh_size / sizeof(Elf_Sym); in add_kallsyms() 2831 mod->kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr; in add_kallsyms() 2832 mod->kallsyms->typetab = mod->init_layout.base + info->init_typeoffs; in add_kallsyms() 2835 * Now populate the cut down core kallsyms for after init in add_kallsyms() 2841 src = mod->kallsyms->symtab; in add_kallsyms() 2842 for (ndst = i = 0; i < mod->kallsyms in add_kallsyms() 4249 kallsyms_symbol_name(struct mod_kallsyms *kallsyms, unsigned int symnum) kallsyms_symbol_name() argument 4265 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); find_kallsyms_symbol() local 4404 struct mod_kallsyms *kallsyms; module_get_kallsym() local 4430 struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms); find_kallsyms_symbol_value() local 4478 struct mod_kallsyms *kallsyms = mod->kallsyms; module_kallsyms_on_each_symbol() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | ksyms_common.c | 3 * ksyms_common.c: A split of kernel/kallsyms.c 6 #include <linux/kallsyms.h> 21 * We show kallsyms information even to normal users if we've enabled
|
/kernel/linux/common_modules/tzdriver/agent_rpmb/mdc/ |
H A D | rpmb_driver.c | 18 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | sysrq_32.c | 10 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/sh/oprofile/ |
H A D | backtrace.c | 14 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
H A D | sysrq.c | 7 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_lib.sh | 43 if ! mptcp_lib_has_file "/proc/kallsyms"; then 55 grep -q " ${sym}" /proc/kallsyms
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/ |
H A D | spu_callbacks.c | 8 #include <linux/kallsyms.h>
|
/kernel/linux/linux-6.6/arch/riscv/kernel/probes/ |
H A D | decode-insn.c | 6 #include <linux/kallsyms.h>
|
/kernel/linux/linux-6.6/arch/um/kernel/ |
H A D | sysrq.c | 7 #include <linux/kallsyms.h>
|
/kernel/linux/linux-6.6/drivers/tty/ |
H A D | tty_mutex.c | 4 #include <linux/kallsyms.h>
|
/kernel/linux/linux-6.6/arch/x86/um/ |
H A D | sysrq_32.c | 10 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | irq.c | 15 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/csky/kernel/probes/ |
H A D | decode-insn.c | 6 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/microblaze/kernel/ |
H A D | traps.c | 13 #include <linux/kallsyms.h>
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
H A D | spu_callbacks.c | 8 #include <linux/kallsyms.h>
|
H A D | pervasive.c | 17 #include <linux/kallsyms.h>
|