Home
last modified time | relevance | path

Searched full:symbols (Results 1 – 25 of 664) sorted by relevance

12345678910>>...27

/linux-6.12.1/scripts/
Dmksysmap4 # sed script to filter out symbols that are not needed for System.map,
8 # tools to retrieve the actual addresses of symbols in the kernel.
10 # readprofile starts reading symbols when _stext is found, and
18 # a: local absolute symbols
19 # N: debugging symbols
20 # U: undefined global symbols
21 # w: local weak symbols
28 # local symbols for ARM, MIPS, etc.
37 # arm64 local symbols in PIE namespace
41 # arm64 local symbols in non-VHE KVM namespace
[all …]
Dcheckkconfigsymbols.py4 """Find Kconfig symbols that are referenced but not defined."""
44 usage = "Run this tool to detect Kconfig symbols that are referenced but " \
56 "undefined Kconfig symbols")
60 help="diff undefined symbols between two commits "
65 help="find and show commits that may cause symbols to be "
74 help="print a list of max. 10 string-similar symbols")
128 print("%s: %s" % (yel("Similar symbols"), ', '.join(sims)))
130 print("%s: no similar symbols found" % yel("Similar symbols"))
133 # dictionary of (un)defined symbols
189 sims_out = yel("Similar symbols")
[all …]
Dkallsyms.c8 * Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S
10 * Table compression uses all the unused char codes on the symbols and
16 * Applied to kernel symbols, this usually produces a compression ratio
76 fprintf(stderr, "Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S\n"); in usage()
91 /* Keep these useful absolute symbols */ in is_ignored_symbol()
162 /* Ignore most absolute/undefined (?) symbols. */ in read_symbol()
208 /* if --all-symbols is not specified, then symbols outside the text in symbol_valid()
212 * Symbols starting with __start and __stop are used to denote in symbol_valid()
222 /* Corner case. Discard any symbols with the same value as in symbol_valid()
224 * the kallsyms data are added. If these symbols move then in symbol_valid()
[all …]
Dextract-sys-certs.pl61 my %symbols = ();
73 $symbols{$name} = $addr;
81 print "No symbols in vmlinux, trying $sysmap\n";
89 die "No symbols available\n"
92 print "Have $nr_symbols symbols\n";
95 unless (exists($symbols{"__cert_list_start"}) &&
96 exists($symbols{"system_certificate_list_size"}));
98 my $start = Math::BigInt->new($symbols{"__cert_list_start"});
101 my $size_sym = Math::BigInt->new($symbols{"system_certificate_list_size"});
Dlink-vmlinux.sh26 # System.map is generated to document addresses of all kernel symbols
91 # The kallsyms linking does not need debug symbols included.
115 # Create ${btf_data} which contains just .BTF section but no symbols. Add
117 # deletes all symbols including __start_BTF and __stop_BTF, which will
134 # Create ${2}.o file with all symbols from the ${1} object file
140 kallsymopt="${kallsymopt} --all-symbols"
166 # Create map file with all symbols from ${1}
212 # The kallsyms linking does not need debug symbols, but the BTF does.
231 # Generate section listing all symbols and add it into vmlinux
234 # 1) Link .tmp_vmlinux.kallsyms1 so it has all symbols and sections,
[all …]
Dexport_report.pl92 # collect all the symbols and their attributes from the
143 print "\tThis file reports the exported symbols usage patterns by in-tree\n",
147 printf("SECTION 1: Usage counts of all exported symbols\n");
148 printf("SECTION 2: List of modules and the exported symbols they use\n");
150 printf("SECTION 1:\tThe exported symbols and their usage count\n\n");
155 # print the list of unused exported symbols
169 modules. Each module lists the modules, and the symbols from that module that
/linux-6.12.1/Documentation/core-api/
Dsymbol-namespaces.rst6 export surface of in-kernel symbols exported through the family of
15 === 3 How to use Symbols exported in Namespaces
16 === 4 Loading Modules that use namespaced Symbols
24 their exported symbols into separate namespaces. That is useful for
26 limiting the availability of a set of symbols for use in other parts of the
27 kernel. As of today, modules that make use of symbols exported into namespaces,
34 Symbols can be exported into namespace using different methods. All of them are
42 exporting of kernel symbols to the kernel symbol table, variants of these are
43 available to export symbols into a certain namespace: EXPORT_SYMBOL_NS() and
60 Defining namespaces for all symbols of a subsystem can be very verbose and may
[all …]
/linux-6.12.1/Documentation/livepatch/
Dmodule-elf-format.rst32 relocation sections and symbols, which are described in this document. The
33 ELF constants used to mark livepatch symbols and relocation sections were
39 reference non-exported global symbols and non-included local symbols.
40 Relocations referencing these types of symbols cannot be left in as-is
47 symbols while taking into account its scope and what module the symbol
51 relocation sections in place of dynrela sections, and the symbols that the
52 relas reference are special livepatch symbols (see section 2 and 3). The
187 4. Livepatch symbols
190 Livepatch symbols are symbols referred to by livepatch relocation sections.
191 These are symbols accessed from new versions of functions for patched
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_ksyms_weak.c18 /* existing weak symbols */
20 /* test existing weak symbols can be resolved. */
27 /* non-existent weak symbols. */
29 /* typeless symbols, default to zero. */
32 /* typed symbols, default to zero. */
41 /* tests existing symbols. */ in pass_handler()
47 /* tests non-existent symbols. */ in pass_handler()
50 /* tests non-existent symbols. */ in pass_handler()
/linux-6.12.1/Documentation/kbuild/
Dkconfig.rst19 New kernel releases often introduce new config symbols. Often more
20 important, new kernel releases may rename config symbols. When
24 symbols have been introduced.
26 To see a list of new config symbols, use::
31 and the config program will list any new symbols, one per line.
60 symbols in the config input.
66 If you set ``CONFIG_`` in the environment, Kconfig will prefix all symbols
75 that contains config symbols that the user requires to be set to a
84 config files containing just the config symbols that you are interested
86 including symbols of your miniconfig file.
[all …]
Dmodules.rst371 Module.symvers contains a list of all exported symbols from a kernel
374 Symbols From the Kernel (vmlinux + modules)
378 generated. Module.symvers contains all exported symbols from
396 1) It lists all exported symbols from vmlinux and all modules.
399 Symbols and External Modules
403 to the symbols from the kernel to check if all external symbols
405 the symbols by reading Module.symvers from the kernel source
407 written containing all exported symbols from that external module.
409 Symbols From Another External Module
412 Sometimes, an external module uses exported symbols from
[all …]
Dkconfig-language.rst20 | +- Set version information on all module symbols
35 bool "Set version information on all module symbols"
145 symbols.
152 In general use select only for non-visible symbols
153 (no prompts anywhere) and for symbols with no dependencies.
222 false, the menu block is not displayed to the user (the symbols
223 contained there can still be selected by other symbols, though). It is
230 and hex symbols. The user can only input a value which is larger than
242 enables the third modular state for all config symbols.
249 the input range of tristate symbols. The tristate logic used in the
[all …]
/linux-6.12.1/fs/ntfs3/lib/
Ddecompress_common.c19 * decoding of prefix-encoded symbols using read_huffsym().
25 * code or not until all symbols have been decoded.
32 * of the corresponding symbols. Consequently, we can sort the symbols
38 * Instead, it directly builds a table for decoding symbols using the
62 * contain symbols. Note that the long-codeword case is, in general,
64 * used symbols are assigned the shortest codeword lengths.
83 * The number of symbols in the alphabet; also, the length of the
126 /* Count how many symbols have each possible codeword length. in make_huffman_decode_table()
160 * so we must allow it. By definition, no symbols can in make_huffman_decode_table()
165 * decode symbols using such a code, we zero out the in make_huffman_decode_table()
[all …]
/linux-6.12.1/tools/perf/util/
Dsymbol.c192 void symbols__fixup_duplicate(struct rb_root_cached *symbols) in symbols__fixup_duplicate() argument
200 nd = rb_first_cached(symbols); in symbols__fixup_duplicate()
216 rb_erase_cached(&next->rb_node, symbols); in symbols__fixup_duplicate()
223 rb_erase_cached(&curr->rb_node, symbols); in symbols__fixup_duplicate()
229 /* Update zero-sized symbols using the address of the next symbol */
230 void symbols__fixup_end(struct rb_root_cached *symbols, bool is_kallsyms) in symbols__fixup_end() argument
232 struct rb_node *nd, *prevnd = rb_first_cached(symbols); in symbols__fixup_end()
256 * In kallsyms, it determines module symbols using '[' character in symbols__fixup_end()
332 void symbols__delete(struct rb_root_cached *symbols) in symbols__delete() argument
335 struct rb_node *next = rb_first_cached(symbols); in symbols__delete()
[all …]
Dsymbol.h59 /** Set true for kernel symbols of idle routines. */
76 void symbols__delete(struct rb_root_cached *symbols);
78 /* symbols__for_each_entry - iterate over symbols (rb_root)
80 * @symbols: the rb_root of symbols
84 #define symbols__for_each_entry(symbols, pos, nd) \ argument
85 for (nd = rb_first_cached(symbols); \
187 void __symbols__insert(struct rb_root_cached *symbols, struct symbol *sym,
189 void symbols__insert(struct rb_root_cached *symbols, struct symbol *sym);
190 void symbols__fixup_duplicate(struct rb_root_cached *symbols);
191 void symbols__fixup_end(struct rb_root_cached *symbols, bool is_kallsyms);
/linux-6.12.1/kernel/trace/
Dfprobe.c158 /* Convert ftrace location address from symbols */
163 /* Convert symbols to symbol address */ in get_ftrace_locations()
168 /* ftrace_lookup_symbols expects sorted symbols */ in get_ftrace_locations()
228 * @filter: A wildcard pattern of probed symbols.
229 * @notfilter: A wildcard pattern of NOT probed symbols.
231 * Register @fp to ftrace for enabling the probe on the symbols matched to @filter.
232 * If @notfilter is not NULL, the symbols matched the @notfilter are not probed.
264 * correctly calculate the total number of filtered symbols in register_fprobe()
319 * register_fprobe_syms() - Register fprobe to ftrace by symbols.
321 * @syms: An array of target symbols.
[all …]
/linux-6.12.1/tools/lib/bpf/
Delf.c127 pr_warn("elf: failed to get symbols for symtab section in '%s': %s\n", in elf_sym_iter_new()
231 /* Symbols are in forms of func, func@LIB_VER or func@@LIB_VER in symbol_match()
247 /* If user specifies symbol version, for dynamic symbols, in symbol_match()
257 /* For normal symbols, it is already in form of func@LIB_VER */ in symbol_match()
406 * Return offsets in @poffsets for symbols specified in @syms array argument.
417 struct symbol *symbols; in elf_resolve_syms_offsets() local
425 symbols = calloc(cnt, sizeof(*symbols)); in elf_resolve_syms_offsets()
427 if (!offsets || !symbols) { in elf_resolve_syms_offsets()
433 symbols[i].name = syms[i]; in elf_resolve_syms_offsets()
434 symbols[i].idx = i; in elf_resolve_syms_offsets()
[all …]
/linux-6.12.1/tools/perf/
Dperf-archive.sh7 PERF_SYMBOLS=perf.symbols
48 …AR_CONTENTS" | grep "$PERF_SYMBOLS.tar.bz2" | wc -l` # check if it contains a sub-tar perf.symbols
50 …cho "Error: $TARGET file is not valid (contains zero or multiple sub-tar files with debug symbols)"
67 …# unzip the perf.data file in the current working directory and debug symbols in ~/.debug directory
70 else # perf tar generated by perf archive (contains only debug symbols)
107 if [ $ALL -eq 1 ]; then # pack perf.data file together with tar containing debug symbols
113 else # pack only the debug symbols
/linux-6.12.1/tools/perf/tests/
Dvmlinux-kallsyms.c23 * Symbols which vary between passes. Passes 1 and 2 must have in is_ignored_symbol()
24 * identical symbol lists. The kallsyms_* symbols below are in is_ignored_symbol()
26 * when --all-symbols is specified so exclude them to get a in is_ignored_symbol()
36 /* Exclude linker generated symbols which vary between passes */ in is_ignored_symbol()
44 "$", /* local symbols for ARM, MIPS, etc. */ in is_ignored_symbol()
48 "__kvm_nvhe_$", /* arm64 local symbols in non-VHE KVM namespace */ in is_ignored_symbol()
49 "__kvm_nvhe_.L", /* arm64 local symbols in non-VHE KVM namespace */ in is_ignored_symbol()
98 /* exclude debugging symbols */ in is_ignored_symbol()
103 /* Keep these useful absolute symbols */ in is_ignored_symbol()
273 * to fixup the symbols. in test__vmlinux_matches_kallsyms()
[all …]
Dsymbols.c115 /* dso__fprintf() prints all the symbols */ in test_dso()
125 /* Check for overlapping function symbols */ in test_dso()
127 pr_debug("Overlapping symbols:\n"); in test_dso()
185 pr_debug("DSO has no symbols!\n"); in test_file()
220 DEFINE_SUITE("Symbols", symbols);
/linux-6.12.1/kernel/module/
DKconfig176 This enables module versioning for exported symbols also from
350 Symbols exported with EXPORT_SYMBOL_NS*() are considered exported in
354 but it creates consistency between symbols defining namespaces and
373 bool "Trim unused exported kernel symbols"
375 The kernel and some modules make many symbols available for
378 many of those exported symbols might never be used.
380 This option allows for unused exported symbols to be dropped from
388 string "Whitelist of symbols to keep in ksymtab"
391 By default, all unused exported symbols will be un-exported from the
394 UNUSED_KSYMS_WHITELIST allows to whitelist symbols that must be kept
[all …]
/linux-6.12.1/arch/arm64/kernel/
Dimage-vars.h17 * isolate it from the kernel proper. The following symbols are legally
19 * Only include data symbols here, or text symbols of functions that are
78 * separate it from the kernel proper. The following symbols are legally
80 * Do not include symbols which may not be safely accessed under hypervisor
98 /* Kernel symbols used to call panic() from nVHE hyp code (via ERET). */
/linux-6.12.1/sound/pci/cs46xx/
Ddsp_spos.c130 if (ins->symbol_table.symbols[i].deleted) { in find_free_symbol_index()
145 if (!strcmp(module->symbol_table.symbols[0].symbol_name, "OVERLAYBEGINADDRESS") && in add_symbols()
146 module->symbol_table.symbols[0].symbol_type == SYMBOL_CONSTANT ) { in add_symbols()
147 module->overlay_begin_address = module->symbol_table.symbols[0].address; in add_symbols()
160 module->symbol_table.symbols[i].symbol_name, in add_symbols()
161 module->symbol_table.symbols[i].symbol_type) == NULL) { in add_symbols()
163 ins->symbol_table.symbols[ins->symbol_table.nsymbols] = module->symbol_table.symbols[i]; in add_symbols()
164 …ins->symbol_table.symbols[ins->symbol_table.nsymbols].address += ((ins->code.offset / 2) - module-… in add_symbols()
165 ins->symbol_table.symbols[ins->symbol_table.nsymbols].module = module; in add_symbols()
166 ins->symbol_table.symbols[ins->symbol_table.nsymbols].deleted = 0; in add_symbols()
[all …]
/linux-6.12.1/scripts/gdb/linux/
Dsymbols.py4 # load kernel and module symbols
44 gdb.write("refreshing all symbols to reload module "
57 """(Re-)load symbols of Linux kernel and currently loaded modules.
62 lx-symbols command."""
71 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES,
144 # Dropping symbols will disable all breakpoints. So save their states
151 # drop all current symbols and reload vmlinux
/linux-6.12.1/tools/perf/Documentation/
Dperf-diff.txt24 As the perf.data files could come from different binaries, the symbols addresses
26 symbols name.
39 Load module symbols. WARNING: use only with -k and LIVE kernel
43 Only consider symbols in these dsos. CSV that understands
49 Only consider symbols in these comms. CSV that understands
54 --symbols=::
55 Only consider these symbols. CSV that understands
85 Look for files with symbols relative to this directory.
121 Filters can be applied by --comms, --dsos and/or --symbols options.

12345678910>>...27