| /linux/lib/kunit/ |
| H A D | executor_test.c | 49 struct kunit_suite_set got; in filter_suites_test() local 56 got = kunit_filter_suites(&suite_set, "suite2", NULL, NULL, &err); in filter_suites_test() 57 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, got.start); in filter_suites_test() 59 free_suite_set_at_end(test, &got); in filter_suites_test() 62 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, got.start[0]); in filter_suites_test() 63 KUNIT_EXPECT_STREQ(test, (const char *)got.start[0]->name, "suite2"); in filter_suites_test() 66 KUNIT_ASSERT_EQ(test, got.end - got.start, 1); in filter_suites_test() 75 struct kunit_suite_set got; in filter_suites_test_glob_test() local 82 got = kunit_filter_suites(&suite_set, "suite2.test2", NULL, NULL, &err); in filter_suites_test_glob_test() 83 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, got.start); in filter_suites_test_glob_test() [all …]
|
| /linux/tools/testing/selftests/livepatch/ |
| H A D | test-shadow-vars.sh | 21 $MOD_TEST: got expected NULL result 35 $MOD_TEST: got expected PTR3 -> PTR2 result 37 $MOD_TEST: got expected PTR6 -> PTR5 result 39 $MOD_TEST: got expected PTR8 -> PTR7 result 41 $MOD_TEST: got expected PTR11 -> PTR10 result 43 $MOD_TEST: got expected PTR13 -> PTR12 result 45 $MOD_TEST: got expected PTR16 -> PTR15 result 47 $MOD_TEST: got expected PTR3 -> PTR2 result 49 $MOD_TEST: got expected PTR8 -> PTR7 result 51 $MOD_TEST: got expected PTR13 -> PTR12 result [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | skeleton.c | 46 CHECK(data->in1 != -1, "in1", "got %d != exp %d\n", data->in1, -1); in test_skeleton() 47 CHECK(data->out1 != -1, "out1", "got %d != exp %d\n", data->out1, -1); in test_skeleton() 48 CHECK(data->in2 != -1, "in2", "got %lld != exp %lld\n", data->in2, -1LL); in test_skeleton() 49 CHECK(data->out2 != -1, "out2", "got %lld != exp %lld\n", data->out2, -1LL); in test_skeleton() 51 CHECK(bss->in3 != 0, "in3", "got %d != exp %d\n", bss->in3, 0); in test_skeleton() 52 CHECK(bss->out3 != 0, "out3", "got %d != exp %d\n", bss->out3, 0); in test_skeleton() 53 CHECK(bss->in4 != 0, "in4", "got %lld != exp %lld\n", bss->in4, 0LL); in test_skeleton() 54 CHECK(bss->out4 != 0, "out4", "got %lld != exp %lld\n", bss->out4, 0LL); in test_skeleton() 56 CHECK(rodata->in.in6 != 0, "in6", "got %d != exp %d\n", rodata->in.in6, 0); in test_skeleton() 57 CHECK(bss->out6 != 0, "out6", "got %d != exp %d\n", bss->out6, 0); in test_skeleton() [all …]
|
| H A D | test_strncmp.c | 30 int got; in strncmp_full_str_cmp() local 37 got = trigger_strncmp(skel); in strncmp_full_str_cmp() 38 ASSERT_EQ(got, exp, name); in strncmp_full_str_cmp() 47 int err, got; in test_strncmp_ret() local 67 got = trigger_strncmp(skel); in test_strncmp_ret() 68 ASSERT_EQ(got, -1, "strncmp: empty str"); in test_strncmp_ret() 72 got = trigger_strncmp(skel); in test_strncmp_ret() 73 ASSERT_EQ(got, 0, "strncmp: same str"); in test_strncmp_ret() 78 got = trigger_strncmp(skel); in test_strncmp_ret() 79 ASSERT_EQ(got, 1, "strncmp: not-null-term str"); in test_strncmp_ret()
|
| H A D | ringbuf.c | 53 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample() 57 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample() 233 "err_avail_size", "exp %ld, got %ld\n", in ringbuf_subtest() 236 "err_ring_size", "exp %ld, got %ld\n", in ringbuf_subtest() 239 "err_cons_pos", "exp %ld, got %ld\n", in ringbuf_subtest() 242 "err_prod_pos", "exp %ld, got %ld\n", in ringbuf_subtest() 264 CHECK(cnt != 2, "cnt", "exp %d samples, got %d\n", 2, cnt); in ringbuf_subtest() 271 CHECK(cnt != 0, "cnt", "exp %d samples, got %d\n", 0, cnt); in ringbuf_subtest() 273 CHECK(skel->bss->dropped != 0, "err_dropped", "exp %ld, got %ld\n", in ringbuf_subtest() 275 CHECK(skel->bss->total != 2, "err_total", "exp %ld, got %ld\n", in ringbuf_subtest() [all …]
|
| /linux/arch/powerpc/include/uapi/asm/ |
| H A D | elf.h | 72 #define R_PPC_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */ 73 #define R_PPC_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */ 74 #define R_PPC_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */ 75 #define R_PPC_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */ 76 #define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ 77 #define R_PPC_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */ 78 #define R_PPC_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */ 79 #define R_PPC_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */ 80 #define R_PPC_GOT_TPREL16 87 /* half16* (sym+add)@got@tprel */ 81 #define R_PPC_GOT_TPREL16_LO 88 /* half16 (sym+add)@got@tprel@l */ [all …]
|
| /linux/fs/btrfs/tests/ |
| H A D | inode-tests.c | 288 test_err("got an error when we shouldn't have"); in test_btrfs_get_extent() 292 test_err("expected a hole, got %llu", em->disk_bytenr); in test_btrfs_get_extent() 307 test_err("got an error when we shouldn't have"); in test_btrfs_get_extent() 311 test_err("expected an inline, got %llu", em->disk_bytenr); in test_btrfs_get_extent() 327 "unexpected extent wanted start 0 len %u, got start %llu len %llu", in test_btrfs_get_extent() 346 test_err("got an error when we shouldn't have"); in test_btrfs_get_extent() 350 test_err("expected a real extent, got %llu", em->disk_bytenr); in test_btrfs_get_extent() 355 "unexpected extent wanted start %llu len %u, got start %llu len %llu", in test_btrfs_get_extent() 373 test_err("got an error when we shouldn't have"); in test_btrfs_get_extent() 377 test_err("expected a real extent, got %llu", em->disk_bytenr); in test_btrfs_get_extent() [all …]
|
| /linux/arch/riscv/kernel/ |
| H A D | module-sections.c | 16 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry() 18 struct got_entry *got = get_got_entry(val, got_sec); in module_emit_got_entry() local 20 if (got) in module_emit_got_entry() 21 return (unsigned long)got; in module_emit_got_entry() 24 got = (struct got_entry *)got_sec->shdr->sh_addr; in module_emit_got_entry() 25 got[i] = emit_got_entry(val); in module_emit_got_entry() 30 return (unsigned long)&got[i]; in module_emit_got_entry() 127 * Find the empty .got and .plt sections. in module_frob_arch_sections() 132 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections() 133 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | elf.h | 18 #define R_390_GOT12 6 /* 12 bit GOT offset. */ 19 #define R_390_GOT32 7 /* 32 bit GOT offset. */ 22 #define R_390_GLOB_DAT 10 /* Create GOT entry. */ 25 #define R_390_GOTOFF32 13 /* 32 bit offset to GOT. */ 26 #define R_390_GOTPC 14 /* 32 bit PC rel. offset to GOT. */ 27 #define R_390_GOT16 15 /* 16 bit GOT offset. */ 33 #define R_390_GOTPCDBL 21 /* 32 bit PC rel. GOT shifted by 1. */ 36 #define R_390_GOT64 24 /* 64 bit GOT offset. */ 38 #define R_390_GOTENT 26 /* 32 bit PC rel. to GOT entry >> 1. */ 39 #define R_390_GOTOFF16 27 /* 16 bit offset to GOT. */ [all …]
|
| /linux/tools/testing/selftests/hid/ |
| H A D | hidraw.c | 235 TH_LOG("expected size %zu, got %d", sizeof(rdesc), desc_size); in TEST_F() 270 /* verify we got the first part of the descriptor */ in TEST_F() 289 TH_LOG("expected bustype 0x03, got 0x%x", devinfo.bustype); in TEST_F() 291 TH_LOG("expected vendor 0x0001, got 0x%x", devinfo.vendor); in TEST_F() 293 TH_LOG("expected product 0x0a37, got 0x%x", devinfo.product); in TEST_F() 309 ASSERT_EQ(err, sizeof(feature_data)) TH_LOG("HIDIOCGFEATURE ioctl failed, got %d", err); in TEST_F() 311 /* verify we got the expected feature data */ in TEST_F() 313 TH_LOG("expected feature_data[0] = %d, got %d", feature_data[0], buf[0]); in TEST_F() 315 TH_LOG("expected feature_data[1] = %d, got %d", feature_data[1], buf[1]); in TEST_F() 332 ASSERT_EQ(errno, EIO) TH_LOG("expected EIO, got errno %d", errno); in TEST_F() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | stat.h | 67 * parameter to statx(). What statx() actually got will be indicated in 203 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */ 204 #define STATX_MODE 0x00000002U /* Want/got stx_mode & ~S_IFMT */ 205 #define STATX_NLINK 0x00000004U /* Want/got stx_nlink */ 206 #define STATX_UID 0x00000008U /* Want/got stx_uid */ 207 #define STATX_GID 0x00000010U /* Want/got stx_gid */ 208 #define STATX_ATIME 0x00000020U /* Want/got stx_atime */ 209 #define STATX_MTIME 0x00000040U /* Want/got stx_mtime */ 210 #define STATX_CTIME 0x00000080U /* Want/got stx_ctime */ 211 #define STATX_INO 0x00000100U /* Want/got stx_ino */ [all …]
|
| H A D | mount.h | 217 #define STATMOUNT_SB_BASIC 0x00000001U /* Want/got sb_... */ 218 #define STATMOUNT_MNT_BASIC 0x00000002U /* Want/got mnt_... */ 219 #define STATMOUNT_PROPAGATE_FROM 0x00000004U /* Want/got propagate_from */ 220 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */ 221 #define STATMOUNT_MNT_POINT 0x00000010U /* Want/got mnt_point */ 222 #define STATMOUNT_FS_TYPE 0x00000020U /* Want/got fs_type */ 223 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 224 #define STATMOUNT_MNT_OPTS 0x00000080U /* Want/got mnt_opts */ 225 #define STATMOUNT_FS_SUBTYPE 0x00000100U /* Want/got fs_subtype */ 226 #define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */ [all …]
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | stat.h | 67 * parameter to statx(). What statx() actually got will be indicated in 203 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */ 204 #define STATX_MODE 0x00000002U /* Want/got stx_mode & ~S_IFMT */ 205 #define STATX_NLINK 0x00000004U /* Want/got stx_nlink */ 206 #define STATX_UID 0x00000008U /* Want/got stx_uid */ 207 #define STATX_GID 0x00000010U /* Want/got stx_gid */ 208 #define STATX_ATIME 0x00000020U /* Want/got stx_atime */ 209 #define STATX_MTIME 0x00000040U /* Want/got stx_mtime */ 210 #define STATX_CTIME 0x00000080U /* Want/got stx_ctime */ 211 #define STATX_INO 0x00000100U /* Want/got stx_ino */ [all …]
|
| H A D | mount.h | 217 #define STATMOUNT_SB_BASIC 0x00000001U /* Want/got sb_... */ 218 #define STATMOUNT_MNT_BASIC 0x00000002U /* Want/got mnt_... */ 219 #define STATMOUNT_PROPAGATE_FROM 0x00000004U /* Want/got propagate_from */ 220 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */ 221 #define STATMOUNT_MNT_POINT 0x00000010U /* Want/got mnt_point */ 222 #define STATMOUNT_FS_TYPE 0x00000020U /* Want/got fs_type */ 223 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 224 #define STATMOUNT_MNT_OPTS 0x00000080U /* Want/got mnt_opts */ 225 #define STATMOUNT_FS_SUBTYPE 0x00000100U /* Want/got fs_subtype */ 226 #define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */ [all …]
|
| /linux/tools/include/uapi/linux/ |
| H A D | stat.h | 67 * parameter to statx(). What statx() actually got will be indicated in 203 #define STATX_TYPE 0x00000001U /* Want/got stx_mode & S_IFMT */ 204 #define STATX_MODE 0x00000002U /* Want/got stx_mode & ~S_IFMT */ 205 #define STATX_NLINK 0x00000004U /* Want/got stx_nlink */ 206 #define STATX_UID 0x00000008U /* Want/got stx_uid */ 207 #define STATX_GID 0x00000010U /* Want/got stx_gid */ 208 #define STATX_ATIME 0x00000020U /* Want/got stx_atime */ 209 #define STATX_MTIME 0x00000040U /* Want/got stx_mtime */ 210 #define STATX_CTIME 0x00000080U /* Want/got stx_ctime */ 211 #define STATX_INO 0x00000100U /* Want/got stx_ino */ [all …]
|
| H A D | mount.h | 213 #define STATMOUNT_SB_BASIC 0x00000001U /* Want/got sb_... */ 214 #define STATMOUNT_MNT_BASIC 0x00000002U /* Want/got mnt_... */ 215 #define STATMOUNT_PROPAGATE_FROM 0x00000004U /* Want/got propagate_from */ 216 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */ 217 #define STATMOUNT_MNT_POINT 0x00000010U /* Want/got mnt_point */ 218 #define STATMOUNT_FS_TYPE 0x00000020U /* Want/got fs_type */ 219 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 220 #define STATMOUNT_MNT_OPTS 0x00000080U /* Want/got mnt_opts */ 221 #define STATMOUNT_FS_SUBTYPE 0x00000100U /* Want/got fs_subtype */ 222 #define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */ [all …]
|
| /linux/arch/loongarch/kernel/ |
| H A D | module-sections.c | 15 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry() 17 struct got_entry *got = get_got_entry(val, sechdrs, got_sec); in module_emit_got_entry() local 19 if (got) in module_emit_got_entry() 20 return (Elf_Addr)got; in module_emit_got_entry() 22 /* There is no GOT entry for val yet, create a new one. */ in module_emit_got_entry() 23 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry() 24 got[i] = emit_got_entry(val); in module_emit_got_entry() 32 pr_err("%s: module contains bad GOT relocation\n", mod->name); in module_emit_got_entry() 36 return (Elf_Addr)&got[i]; in module_emit_got_entry() 115 if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections() [all …]
|
| /linux/arch/alpha/kernel/ |
| H A D | module.c | 20 /* Allocate the GOT at the end of the core sections. */ 59 bits above 256 to store the got offset for this reloc. */ in process_reloc_for_got() 69 Elf64_Shdr *esechdrs, *symtab, *s, *got; in module_frob_arch_sections() local 73 symtab = got = NULL; in module_frob_arch_sections() 81 else if (!strcmp(".got", secstrings + s->sh_name)) { in module_frob_arch_sections() 82 got = s; in module_frob_arch_sections() 90 if (!got) { in module_frob_arch_sections() 91 printk(KERN_ERR "module %s: no got section\n", me->name); in module_frob_arch_sections() 104 got->sh_size = 0; in module_frob_arch_sections() 105 got->sh_addralign = 8; in module_frob_arch_sections() [all …]
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | lpm_trie_map_basic_ops.c | 807 unsigned int value, got; in test_lpm_trie_update_flags() local 839 got = 0; in test_lpm_trie_update_flags() 840 err = bpf_map_lookup_elem(fd, &key, &got); in test_lpm_trie_update_flags() 842 CHECK(got != value, "check value", "got %d exp %d\n", got, value); in test_lpm_trie_update_flags() 852 got = 0; in test_lpm_trie_update_flags() 853 err = bpf_map_lookup_elem(fd, &key, &got); in test_lpm_trie_update_flags() 855 CHECK(got != value, "check value", "got %d exp %d\n", got, value); in test_lpm_trie_update_flags() 861 got = 0; in test_lpm_trie_update_flags() 862 err = bpf_map_lookup_elem(fd, &key, &got); in test_lpm_trie_update_flags() 864 CHECK(got != value, "check value", "got %d exp %d\n", got, value); in test_lpm_trie_update_flags() [all …]
|
| /linux/samples/vfs/ |
| H A D | samples-vfs.h | 114 #define STATMOUNT_SB_BASIC 0x00000001U /* Want/got sb_... */ 118 #define STATMOUNT_MNT_BASIC 0x00000002U /* Want/got mnt_... */ 122 #define STATMOUNT_PROPAGATE_FROM 0x00000004U /* Want/got propagate_from */ 126 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */ 130 #define STATMOUNT_MNT_POINT 0x00000010U /* Want/got mnt_point */ 134 #define STATMOUNT_FS_TYPE 0x00000020U /* Want/got fs_type */ 138 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 142 #define STATMOUNT_MNT_OPTS 0x00000080U /* Want/got mnt_opts */ 146 #define STATMOUNT_FS_SUBTYPE 0x00000100U /* Want/got fs_subtype */ 150 #define STATMOUNT_SB_SOURCE 0x00000200U /* Want/got sb_source */ [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_bmap.c | 1243 struct xfs_bmbt_irec got; in xfs_bmap_first_unused() local 1261 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_first_unused() 1265 if (got.br_startoff >= lowest + len && in xfs_bmap_first_unused() 1266 got.br_startoff - max >= len) in xfs_bmap_first_unused() 1268 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused() 1290 struct xfs_bmbt_irec got; in xfs_bmap_last_before() local 1311 if (!xfs_iext_lookup_extent_before(ip, ifp, last_block, &icur, &got)) in xfs_bmap_last_before() 1445 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real() 3094 if (!isnullstartblock(ap->got.br_startblock)) { in xfs_bmap_adjacent() 3098 adjust = gotdiff = ap->got.br_startoff - ap->offset; in xfs_bmap_adjacent() [all …]
|
| /linux/arch/x86/boot/compressed/ |
| H A D | vmlinux.lds.S | 94 .got.plt (INFO) : { 95 *(.got.plt) 97 ASSERT(SIZEOF(.got.plt) == 0 || 99 SIZEOF(.got.plt) == 0x18, 101 SIZEOF(.got.plt) == 0xc, 103 "Unexpected GOT/PLT entries detected!") 109 .got : { 110 *(.got) 112 ASSERT(SIZEOF(.got) == 0, "Unexpected GOT entries detected!")
|
| /linux/arch/s390/kernel/ |
| H A D | module.c | 65 case R_390_GOT12: /* 12 bit GOT offset. */ in check_rela() 66 case R_390_GOT16: /* 16 bit GOT offset. */ in check_rela() 67 case R_390_GOT20: /* 20 bit GOT offset. */ in check_rela() 68 case R_390_GOT32: /* 32 bit GOT offset. */ in check_rela() 69 case R_390_GOT64: /* 64 bit GOT offset. */ in check_rela() 70 case R_390_GOTENT: /* 32 bit PC rel. to GOT entry shifted by 1. */ in check_rela() 86 case R_390_PLTOFF16: /* 16 bit offset from GOT to PLT. */ in check_rela() 87 case R_390_PLTOFF32: /* 32 bit offset from GOT to PLT. */ in check_rela() 88 case R_390_PLTOFF64: /* 16 bit offset from GOT to PLT. */ in check_rela() 105 * Account for GOT and PLT relocations. We can't add sections for [all …]
|
| /linux/arch/x86/lib/ |
| H A D | insn.c | 117 * to point to the (first) opcode. No effect if @insn->prefixes.got 131 if (prefixes->got) in insn_get_prefixes() 197 insn->rex_prefix.got = 1; in insn_get_prefixes() 201 insn->rex_prefix.got = 1; in insn_get_prefixes() 252 insn->vex_prefix.got = 1; in insn_get_prefixes() 254 prefixes->got = 1; in insn_get_prefixes() 269 * Sets @insn->opcode.value = opcode1. No effect if @insn->opcode.got 282 if (opcode->got) in insn_get_opcode() 363 opcode->got = 1; in insn_get_opcode() 376 * (prefixes and opcode(s)). No effect if @insn->modrm.got is already 1. [all …]
|
| /linux/tools/arch/x86/lib/ |
| H A D | insn.c | 117 * to point to the (first) opcode. No effect if @insn->prefixes.got 131 if (prefixes->got) in insn_get_prefixes() 197 insn->rex_prefix.got = 1; in insn_get_prefixes() 201 insn->rex_prefix.got = 1; in insn_get_prefixes() 252 insn->vex_prefix.got = 1; in insn_get_prefixes() 254 prefixes->got = 1; in insn_get_prefixes() 269 * Sets @insn->opcode.value = opcode1. No effect if @insn->opcode.got 282 if (opcode->got) in insn_get_opcode() 363 opcode->got = 1; in insn_get_opcode() 376 * (prefixes and opcode(s)). No effect if @insn->modrm.got is already 1. [all …]
|