Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 45) sorted by relevance

12

/tools/testing/selftests/arm64/signal/testcases/
Dtestcases.c5 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()
Dtestcases.h83 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic,
96 tail->magic = 0; in write_terminator_record()
Dfake_sigreturn_bad_size_for_magic0.c32 head->magic = 0; in fake_sigreturn_bad_size_for_magic0_run()
Dfake_sigreturn_bad_magic.c36 head->magic = KSFT_BAD_MAGIC; in fake_sigreturn_bad_magic_run()
Dfake_sigreturn_duplicated_fpsimd.c33 head->magic = FPSIMD_MAGIC; in fake_sigreturn_duplicated_fpsimd_run()
Dfake_sigreturn_bad_size.c45 head->magic = ESR_MAGIC; in fake_sigreturn_bad_size_run()
/tools/testing/selftests/bpf/prog_tests/
Dxdp_noinline.c32 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()
Dl4lb_all.c31 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()
Dbtf_endian.c56 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/
Dtracelog.c27 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/
Dfs.c94 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/
Dheader.h65 u64 magic; member
76 u64 magic; member
150 bool is_perf_magic(u64 magic);
Dzlib.c86 const uint8_t magic[2] = { 0x1f, 0x8b }; in gzip_is_compressed() local
96 memcmp(buf, magic, sizeof(buf)) == 0 : false; in gzip_is_compressed()
Dlzma.c113 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()
Dcs-etm.c129 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 …]
Djitdump.h38 uint32_t magic; /* characters "jItD" */ member
Ddata.c503 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/
Dtest_misc_tcp_hdr_options.c69 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()
Dtest_tcp_estats.c127 unsigned int magic; member
166 event->magic = TCP_ESTATS_MAGIC; in tcp_estats_ev_init()
/tools/include/uapi/linux/
Dbtf.h12 __u16 magic; member
/tools/perf/arch/arm/util/
Dcs-etm.c665 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/
Dmain.c180 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/
Daio_simple.c65 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
128 .magic = htole32(FUNCTIONFS_STRINGS_MAGIC),
/tools/usb/
Dffs-test.c128 .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/
Dtest_tcp_hdr_options.h72 __u16 magic; member

12