Home
last modified time | relevance | path

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

/tools/lib/api/fs/
Dfs.c83 long magic; member
102 .magic = SYSFS_MAGIC,
107 .magic = PROC_SUPER_MAGIC,
112 .magic = DEBUGFS_MAGIC,
117 .magic = TRACEFS_MAGIC,
122 .magic = HUGETLBFS_MAGIC,
148 static int fs__valid_mount(const char *fs, long magic) in fs__valid_mount() argument
154 else if ((long)st_fs.f_type != magic) in fs__valid_mount()
166 if (fs__valid_mount(*ptr, fs->magic) == 0) { in fs__check_mounts()
/tools/perf/util/
Dheader.h51 u64 magic; member
62 u64 magic; member
143 bool is_perf_magic(u64 magic);
Djitdump.h36 uint32_t magic; /* characters "jItD" */ member
Dheader.c2343 .magic = PERF_MAGIC, in perf_header__write_pipe()
2406 .magic = PERF_MAGIC, in perf_session__write_header()
2556 bool is_perf_magic(u64 magic) in is_perf_magic() argument
2558 if (!memcmp(&magic, __perf_magic1, sizeof(magic)) in is_perf_magic()
2559 || magic == __perf_magic2 in is_perf_magic()
2560 || magic == __perf_magic2_sw) in is_perf_magic()
2566 static int check_magic_endian(u64 magic, uint64_t hdr_sz, in check_magic_endian() argument
2572 ret = memcmp(&magic, __perf_magic1, sizeof(magic)); in check_magic_endian()
2589 if (magic == __perf_magic2) in check_magic_endian()
2593 if (magic != __perf_magic2_sw) in check_magic_endian()
[all …]
Djitdump.c149 if (header.magic != JITHEADER_MAGIC) { in jit_open()
150 if (header.magic != JITHEADER_MAGIC_SW) in jit_open()
/tools/perf/arch/arm/util/
Dcs-etm.c355 u64 magic; in cs_etm_get_metadata() local
362 magic = __perf_cs_etmv4_magic; in cs_etm_get_metadata()
390 magic = __perf_cs_etmv3_magic; in cs_etm_get_metadata()
409 info->priv[*offset + CS_ETM_MAGIC] = magic; in cs_etm_get_metadata()
/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.c120 .magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
190 if (le32_to_cpu(in->header.magic) != in descs_to_legacy()
248 out->header.magic = cpu_to_le32(FUNCTIONFS_DESCRIPTORS_MAGIC); in descs_to_legacy()
270 .magic = cpu_to_le32(FUNCTIONFS_STRINGS_MAGIC),
/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c67 .magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2),
130 .magic = htole32(FUNCTIONFS_STRINGS_MAGIC),
/tools/perf/Documentation/
Dperf.data-file-format.txt20 char magic[8]; /* PERFILE2 */
30 The magic number identifies the perf file and the version. Current perf versions
32 is not described here. The magic number also identifies the endian. When the
33 magic value is 64bit byte swapped compared the file is in non-native
/tools/perf/jvmti/
Djvmti_agent.c286 header.magic = JITHEADER_MAGIC; in jvmti_open()
/tools/net/
Dbpf_dbg.c102 uint32_t magic; member
980 if (hdr->magic != TCPDUMP_MAGIC) { in try_load_pcap()
/tools/perf/ui/browsers/
Dhists.c2275 u64 magic; in switch_data_file() local
2288 if (fread(&magic, 1, 8, file) < 8) in switch_data_file()
2291 if (is_perf_magic(magic)) { in switch_data_file()