/tools/testing/selftests/arm64/signal/testcases/ |
D | testcases.c | 5 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, in get_header() argument 15 head->magic != magic && head->magic) { in get_header() 19 if (head->magic == magic) { in get_header() 37 if (!term || term->magic || term->size) { in validate_extra_context() 97 switch (head->magic) { in validate_reserved() 149 head->magic); in validate_reserved()
|
D | testcases.h | 83 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic, 96 tail->magic = 0; in write_terminator_record()
|
D | fake_sigreturn_bad_size_for_magic0.c | 32 head->magic = 0; in fake_sigreturn_bad_size_for_magic0_run()
|
D | fake_sigreturn_bad_magic.c | 36 head->magic = KSFT_BAD_MAGIC; in fake_sigreturn_bad_magic_run()
|
D | fake_sigreturn_duplicated_fpsimd.c | 33 head->magic = FPSIMD_MAGIC; in fake_sigreturn_duplicated_fpsimd_run()
|
D | fake_sigreturn_bad_size.c | 45 head->magic = ESR_MAGIC; in fake_sigreturn_bad_size_run()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_noinline.c | 32 u32 *magic = (u32 *)buf; in test_xdp_noinline() local 46 *magic != MAGIC_VAL, "ipv4", in test_xdp_noinline() 48 err, errno, retval, size, *magic); in test_xdp_noinline() 54 *magic != MAGIC_VAL, "ipv6", in test_xdp_noinline() 56 err, errno, retval, size, *magic); in test_xdp_noinline()
|
D | l4lb_all.c | 31 u32 *magic = (u32 *)buf; in test_l4lb() local 55 *magic != MAGIC_VAL, "ipv4", in test_l4lb() 57 err, errno, retval, size, *magic); in test_l4lb() 62 *magic != MAGIC_VAL, "ipv6", in test_l4lb() 64 err, errno, retval, size, *magic); in test_l4lb()
|
D | btf_endian.c | 56 ASSERT_EQ(bswap_16(hdr->magic), BTF_MAGIC, "btf_magic_swapped"); in test_btf_endian() 67 ASSERT_EQ(hdr->magic, BTF_MAGIC, "btf_magic_native"); in test_btf_endian()
|
/tools/bpf/bpftool/ |
D | tracelog.c | 27 static int validate_tracefs_mnt(const char *mnt, unsigned long magic) in validate_tracefs_mnt() argument 33 if ((unsigned long)st_fs.f_type != magic) in validate_tracefs_mnt() 40 find_tracefs_mnt_single(unsigned long magic, char *mnt, const char *mntpt) in find_tracefs_mnt_single() argument 44 if (validate_tracefs_mnt(mntpt, magic)) in find_tracefs_mnt_single()
|
/tools/lib/api/fs/ |
D | fs.c | 94 long magic; member 114 .magic = SYSFS_MAGIC, 120 .magic = PROC_SUPER_MAGIC, 126 .magic = DEBUGFS_MAGIC, 132 .magic = TRACEFS_MAGIC, 138 .magic = HUGETLBFS_MAGIC, 144 .magic = BPF_FS_MAGIC, 172 static int fs__valid_mount(const char *fs, long magic) in fs__valid_mount() argument 178 else if ((long)st_fs.f_type != magic) in fs__valid_mount() 190 if (fs__valid_mount(*ptr, fs->magic) == 0) { in fs__check_mounts()
|
/tools/perf/util/ |
D | header.h | 65 u64 magic; member 76 u64 magic; member 150 bool is_perf_magic(u64 magic);
|
D | zlib.c | 86 const uint8_t magic[2] = { 0x1f, 0x8b }; in gzip_is_compressed() local 96 memcmp(buf, magic, sizeof(buf)) == 0 : false; in gzip_is_compressed()
|
D | lzma.c | 113 const uint8_t magic[6] = { 0xFD, '7', 'z', 'X', 'Z', 0x00 }; in lzma_is_compressed() local 123 memcmp(buf, magic, sizeof(buf)) == 0 : false; in lzma_is_compressed()
|
D | cs-etm.c | 129 static int cs_etm__get_magic(u8 trace_chan_id, u64 *magic) in cs_etm__get_magic() argument 139 *magic = metadata[CS_ETM_MAGIC]; in cs_etm__get_magic() 1739 struct cs_etm_traceid_queue *tidq, u64 magic) in cs_etm__is_syscall() argument 1745 if (magic == __perf_cs_etmv3_magic) in cs_etm__is_syscall() 1754 if (magic == __perf_cs_etmv4_magic) { in cs_etm__is_syscall() 1765 u64 magic) in cs_etm__is_async_exception() argument 1769 if (magic == __perf_cs_etmv3_magic) in cs_etm__is_async_exception() 1777 if (magic == __perf_cs_etmv4_magic) in cs_etm__is_async_exception() 1792 u64 magic) in cs_etm__is_sync_exception() argument 1798 if (magic == __perf_cs_etmv3_magic) in cs_etm__is_sync_exception() [all …]
|
D | jitdump.h | 38 uint32_t magic; /* characters "jItD" */ member
|
D | data.c | 503 u64 magic; in is_perf_data() local 509 if (fread(&magic, 1, 8, file) < 8) in is_perf_data() 512 ret = is_perf_magic(magic); in is_perf_data()
|
/tools/testing/selftests/bpf/progs/ |
D | test_misc_tcp_hdr_options.c | 69 hdr.exprm_opt.magic = 0; in __check_active_hdr_in() 82 hdr.exprm_opt.magic = __bpf_htons(0xeB9F); in __check_active_hdr_in() 87 hdr.exprm_opt.magic != __bpf_htons(0xeB9F)) in __check_active_hdr_in() 176 exprm_opt.magic = __bpf_htons(0xeB9F); in write_active_opt() 204 exprm_opt.magic != __bpf_htons(0xeB9F)) in write_active_opt()
|
D | test_tcp_estats.c | 127 unsigned int magic; member 166 event->magic = TCP_ESTATS_MAGIC; in tcp_estats_ev_init()
|
/tools/include/uapi/linux/ |
D | btf.h | 12 __u16 magic; member
|
/tools/perf/arch/arm/util/ |
D | cs-etm.c | 665 u64 magic; in cs_etm_get_metadata() local 672 magic = __perf_cs_ete_magic; in cs_etm_get_metadata() 683 magic = __perf_cs_etmv4_magic; in cs_etm_get_metadata() 690 magic = __perf_cs_etmv3_magic; in cs_etm_get_metadata() 710 info->priv[*offset + CS_ETM_MAGIC] = magic; in cs_etm_get_metadata()
|
/tools/bootconfig/ |
D | main.c | 180 char magic[BOOTCONFIG_MAGIC_LEN]; in load_xbc_from_initrd() local 193 if (read(fd, magic, BOOTCONFIG_MAGIC_LEN) < 0) in load_xbc_from_initrd() 197 if (memcmp(magic, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN) != 0) in load_xbc_from_initrd()
|
/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 65 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2), 128 .magic = htole32(FUNCTIONFS_STRINGS_MAGIC),
|
/tools/usb/ |
D | ffs-test.c | 128 .magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2), 238 if (le32_to_cpu(in->header.magic) != in descs_to_legacy() 296 out->header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC); in descs_to_legacy() 318 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
|
/tools/testing/selftests/bpf/ |
D | test_tcp_hdr_options.h | 72 __u16 magic; member
|