/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | kprobe_multi_test.c | 120 const char *syms[8] = { in test_link_api_syms() local 131 opts.kprobe_multi.syms = syms; in test_link_api_syms() 132 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms() 198 const char *syms[8] = { in test_attach_api_syms() local 209 opts.syms = syms; in test_attach_api_syms() 210 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_syms() 220 const char *syms[2] = { in test_attach_api_fails() local 249 opts.syms = syms; in test_attach_api_fails() 250 opts.cnt = ARRAY_SIZE(syms); in test_attach_api_fails() 263 opts.syms = NULL; in test_attach_api_fails() [all …]
|
H A D | kprobe_multi_testmod_test.c | 69 const char *syms[3] = { in test_testmod_attach_api_syms() local 75 opts.syms = syms; in test_testmod_attach_api_syms() 76 opts.cnt = ARRAY_SIZE(syms); in test_testmod_attach_api_syms()
|
/openbmc/u-boot/tools/binman/ |
H A D | elf_test.py | 57 syms = elf.GetSymbols(fname, []) 58 self.assertIn('.ucode', syms) 63 syms = elf.GetSymbols(fname, ['ucode']) 64 self.assertIn('.ucode', syms) 65 syms = elf.GetSymbols(fname, ['missing']) 66 self.assertNotIn('.ucode', syms) 67 syms = elf.GetSymbols(fname, ['missing', 'ucode']) 68 self.assertIn('.ucode', syms) 75 syms = elf.LookupAndWriteSymbols('missing-file', entry, section) 85 syms = elf.LookupAndWriteSymbols(elf_fname, entry, section) [all …]
|
H A D | elf.py | 40 syms = {} 58 syms[name] = Symbol(section, int(value, 16), int(size,16), 62 return OrderedDict(sorted(syms.iteritems(), key=lambda x: x[1].address)) 74 syms = GetSymbols(fname, [sym_name]) 75 sym = syms.get(sym_name) 95 syms = GetSymbols(fname, ['image', 'binman']) 96 if not syms: 98 base = syms.get('__image_copy_start') 101 for name, sym in syms.iteritems():
|
/openbmc/openbmc/meta-security/recipes-security/redhat-security/files/ |
H A D | find-nodrop-groups.sh | 40 …syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setgid@.*GLIBC| setegid@.*GLIBC| setresgid@.*GL… 41 if [ x"$syms" != "x" ] ; then 42 …syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setuid@.*GLIBC| seteuid@.*GLIBC| setresuid@.*GL… 43 if [ x"$syms" != "x" ] ; then 44 syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setgroups@.*GLIBC| initgroups@.*GLIBC'` 45 if [ x"$syms" = "x" ] ; then 49 syms=`find $f \( -perm -004000 -o -perm -002000 \) -type f -print` 50 if [ x"$syms" = "x" ] ; then
|
H A D | find-chroot.sh | 39 syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' chroot@.*GLIBC'` 40 if [ x"$syms" != "x" ] ; then 41 syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' chdir@.*GLIBC'` 42 if [ x"$syms" = "x" ] ; then 55 syms=`objdump -d $f | egrep callq | egrep 'chroot@plt' -A2 | egrep 'chroot|chdir'` 56 if [ x"$syms" = "x" ] ; then 57 syms=`echo $f | egrep -v 'libc-2|libc.so'` 58 if [ x"$syms" != "x" ] ; then
|
H A D | rpm-drop-groups.sh | 70 …syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setgid@.*GLIBC| setegid@.*GLIBC| setresgid@.*GL… 71 if [ x"$syms" != "x" ] ; then 73 …syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setuid@.*GLIBC| seteuid@.*GLIBC| setresuid@.*GL… 74 if [ x"$syms" != "x" ] ; then 75 syms=`/usr/bin/readelf -s $f 2>/dev/null | egrep ' setgroups@.*GLIBC| initgroups@.*GLIBC'` 76 if [ x"$syms" = "x" ] ; then 77 syms=`find $f \( -perm -004000 -o -perm -002000 \) -type f -print` 78 if [ x"$syms" = "x" ] ; then
|
H A D | find-chroot-py.sh | 45 syms=`egrep ' os.chroot' $f` 46 if [ x"$syms" != "x" ] ; then 47 syms=`egrep ' os.chdir' $f` 48 if [ x"$syms" = "x" ] ; then 61 syms=`cat $f | egrep ' os.chroot' -A3 | egrep ' os.chdir'` 62 if [ x"$syms" = "x" ] ; then
|
/openbmc/linux/arch/riscv/kernel/vdso/ |
H A D | Makefile | 7 vdso-syms = rt_sigreturn 9 vdso-syms += vgettimeofday 11 vdso-syms += getcpu 12 vdso-syms += flush_icache 13 vdso-syms += hwprobe 14 vdso-syms += sys_hwprobe 17 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o 35 ifneq ($(filter vgettimeofday, $(vdso-syms)),) 75 $(OBJCOPY) $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
/openbmc/qemu/scripts/ |
H A D | qemu-plugin-symbols.py | 26 syms = re.findall(r'QEMU_PLUGIN_API.*?(\w+)\s*\(', content, re.DOTALL) 27 syms.sort() 29 assert len(syms) == expected 30 return syms 37 syms = extract_symbols(args.plugin_header) 40 for s in syms:
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 22 static struct ksym syms[MAX_SYMS]; variable 52 syms[i].addr = (long) addr; in load_kallsyms_refresh() 53 syms[i].name = strdup(func); in load_kallsyms_refresh() 58 qsort(syms, sym_cnt, sizeof(struct ksym), ksym_cmp); in load_kallsyms_refresh() 85 result = key - syms[mid].addr; in ksym_search() 91 return &syms[mid]; in ksym_search() 94 if (start >= 1 && syms[start - 1].addr < key && in ksym_search() 95 key < syms[start].addr) in ksym_search() 97 return &syms[start - 1]; in ksym_search() 100 return &syms[0]; in ksym_search() [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 370 struct elf_sym *syms = s->disas_symtab.elf32; in lookup_symbolxx() local 372 struct elf_sym *syms = s->disas_symtab.elf64; in lookup_symbolxx() 378 sym = bsearch(&orig_addr, syms, s->disas_num_syms, sizeof(*syms), symfind); in lookup_symbolxx() 402 struct elf_sym *syms, *new_syms; in load_symbols() local 426 syms = malloc(symtab.sh_size); in load_symbols() 427 if (!syms) { in load_symbols() 434 free(syms); in load_symbols() 439 if (read(fd, syms, symtab.sh_size) != symtab.sh_size) { in load_symbols() 441 free(syms); in load_symbols() 450 bswap_sym(syms + i); in load_symbols() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/classes/ |
H A D | breakpad.bbclass | 26 mkdir -p ${PKGD}/usr/share/breakpad-syms 27 …find ${D} -name ${BREAKPAD_BIN} -exec sh -c "dump_syms {} > ${PKGD}/usr/share/breakpad-syms/${BREA… 28 … HASH=$(head -n1 ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym | rev | cut -d ' ' -f2 | rev) 29 mkdir -p ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH} 30 …mv ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_… 35 FILES:${PN}-breakpad = "/usr/share/breakpad-syms"
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | module-plts.c | 157 static unsigned int count_plts(Elf64_Sym *syms, Elf64_Rela *rela, int num, in count_plts() argument 181 s = syms + ELF64_R_SYM(rela[i].r_info); in count_plts() 250 static bool branch_rela_needs_plt(Elf64_Sym *syms, Elf64_Rela *rela, in branch_rela_needs_plt() argument 254 Elf64_Sym *s = syms + ELF64_R_SYM(rela->r_info); in branch_rela_needs_plt() 264 static int partition_branch_plt_relas(Elf64_Sym *syms, Elf64_Rela *rela, in partition_branch_plt_relas() argument 270 if (branch_rela_needs_plt(syms, &rela[i], dstidx)) in partition_branch_plt_relas() 272 else if (branch_rela_needs_plt(syms, &rela[j], dstidx)) in partition_branch_plt_relas() 286 Elf64_Sym *syms = NULL; in module_frob_arch_sections() local 303 syms = (Elf64_Sym *)sechdrs[i].sh_addr; in module_frob_arch_sections() 310 if (!syms) { in module_frob_arch_sections() [all …]
|
/openbmc/linux/arch/csky/kernel/vdso/ |
H A D | Makefile | 7 vdso-syms += rt_sigreturn 8 vdso-syms += vgettimeofday 11 obj-vdso = $(patsubst %, %.o, $(vdso-syms)) note.o 23 obj-y += vdso.o vdso-syms.o 39 $(obj)/vdso-syms.S: $(obj)/vdso.so FORCE 54 $(patsubst %, -G __vdso_%, $(vdso-syms)) $@.tmp $@ && \
|
/openbmc/linux/samples/fprobe/ |
H A D | fprobe_example.c | 93 const char **syms; in fprobe_init() local 121 syms = kcalloc(count, sizeof(char *), GFP_KERNEL); in fprobe_init() 122 if (!syms) { in fprobe_init() 129 syms[i] = strsep(&p, ","); in fprobe_init() 131 ret = register_fprobe_syms(&sample_probe, syms, count); in fprobe_init() 132 kfree(syms); in fprobe_init()
|
/openbmc/linux/arch/s390/boot/ |
H A D | Makefile | 45 obj-all := $(obj-y) piggy.o syms.o 50 targets += vmlinux.bin.zst info.bin syms.bin vmlinux.syms $(obj-all) 80 LDFLAGS_vmlinux.syms := --oformat $(LD_BFD) -e startup -T 81 $(obj)/vmlinux.syms: $(obj)/vmlinux.lds $(OBJECTS) FORCE 89 $(obj)/syms.bin: $(obj)/vmlinux.syms FORCE 92 …OPYFLAGS_syms.o := -I binary -O elf64-s390 -B s390:64-bit --rename-section .data=.decompressor.syms 93 $(obj)/syms.o: $(obj)/syms.bin FORCE
|
/openbmc/qemu/include/hw/ |
H A D | elf_ops.h.inc | 86 struct elf_sym *syms = glue(s->disas_symtab.elf, SZ); 89 sym = bsearch(&orig_addr, syms, s->disas_num_syms, sizeof(*syms), 112 g_autofree struct elf_sym *syms = NULL; 133 syms = load_at(fd, symtab->sh_offset, symtab->sh_size); 134 if (!syms) { 154 glue(bswap_sym, SZ)(&syms[i]); 157 sym_cb(str + syms[i].st_name, syms[i].st_info, 158 syms[i].st_value, syms[i].st_size); 162 if (syms[i].st_shndx == SHN_UNDEF || 163 syms[i].st_shndx >= SHN_LORESERVE || [all …]
|
/openbmc/linux/arch/riscv/kernel/compat_vdso/ |
H A D | Makefile | 7 compat_vdso-syms = rt_sigreturn 8 compat_vdso-syms += getcpu 9 compat_vdso-syms += flush_icache 28 obj-compat_vdso = $(patsubst %, %.o, $(compat_vdso-syms)) note.o 73 $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_vdso-syms)) $@.tmp $@ && \
|
/openbmc/linux/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 56 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local 137 if (syms[k]) { in BITSFUNC() 148 syms[k] = GET_LE(&sym->st_value); in BITSFUNC() 155 INT_BITS symval = syms[special_pages[i]]; in BITSFUNC() 163 if (symval + 4096 < syms[sym_vvar_start]) in BITSFUNC() 170 if (syms[sym_vvar_start] % 4096) in BITSFUNC() 218 if (required_syms[i].export && syms[i]) in BITSFUNC() 220 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
|
H A D | .gitignore | 4 vdso32-syscall-syms.lds 5 vdso32-sysenter-syms.lds 6 vdso32-int80-syms.lds
|
/openbmc/linux/arch/sparc/vdso/ |
H A D | vdso2c.h | 23 INT_BITS syms[NSYMS] = {}; in BITSFUNC() local 91 if (syms[k]) { in BITSFUNC() 102 syms[k] = GET_BE(&sym->st_value); in BITSFUNC() 108 if (syms[sym_vvar_start] % 8192) in BITSFUNC() 137 if (required_syms[i].export && syms[i]) in BITSFUNC() 139 required_syms[i].name, (int64_t)syms[i]); in BITSFUNC()
|
/openbmc/linux/kernel/trace/ |
H A D | fprobe.c | 159 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument 169 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations() 171 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations() 339 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument 344 if (!fp || !syms || num <= 0) in register_fprobe_syms() 347 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | module-plts.c | 157 static unsigned int count_plts(const Elf32_Sym *syms, Elf32_Addr base, in count_plts() argument 182 s = syms + ELF32_R_SYM(rel[i].r_info); in count_plts() 215 Elf32_Sym *syms = NULL; in module_frob_arch_sections() local 227 syms = (Elf32_Sym *)s->sh_addr; in module_frob_arch_sections() 234 if (!syms) { in module_frob_arch_sections() 255 core_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections() 258 init_plts += count_plts(syms, dstsec->sh_addr, rels, in module_frob_arch_sections()
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | Makefile.gate | 6 obj-y += gate-syms.o 22 LDFLAGS_gate-syms.o := -r -R 23 $(obj)/gate-syms.o: $(obj)/gate-dummy.o FORCE
|