Lines Matching defs:magic
3641 .magic = PERF_MAGIC,
3715 .magic = PERF_MAGIC,
3832 * In the legacy file format, the magic number is not used to encode endianness.
3894 bool is_perf_magic(u64 magic)
3896 if (!memcmp(&magic, __perf_magic1, sizeof(magic))
3897 || magic == __perf_magic2
3898 || magic == __perf_magic2_sw)
3904 static int check_magic_endian(u64 magic, uint64_t hdr_sz,
3910 ret = memcmp(&magic, __perf_magic1, sizeof(magic));
3920 * the new magic number serves two purposes:
3926 /* check magic number with one endianness */
3927 if (magic == __perf_magic2)
3930 /* check magic number with opposite endianness */
3931 if (magic != __perf_magic2_sw)
3950 if (check_magic_endian(header->magic,
3952 pr_debug("magic/endian check failed\n");
4054 if (check_magic_endian(header->magic, header->size, true, ph) < 0) {
4055 pr_debug("endian/magic failed\n");