Lines Matching defs:magic
3294 .magic = PERF_MAGIC,
3359 .magic = PERF_MAGIC,
3447 * In the legacy file format, the magic number is not used to encode endianness.
3509 bool is_perf_magic(u64 magic)
3511 if (!memcmp(&magic, __perf_magic1, sizeof(magic))
3512 || magic == __perf_magic2
3513 || magic == __perf_magic2_sw)
3519 static int check_magic_endian(u64 magic, uint64_t hdr_sz,
3525 ret = memcmp(&magic, __perf_magic1, sizeof(magic));
3535 * the new magic number serves two purposes:
3541 /* check magic number with one endianness */
3542 if (magic == __perf_magic2)
3545 /* check magic number with opposite endianness */
3546 if (magic != __perf_magic2_sw)
3565 if (check_magic_endian(header->magic,
3567 pr_debug("magic/endian check failed\n");
3668 if (check_magic_endian(header->magic, header->size, true, ph) < 0) {
3669 pr_debug("endian/magic failed\n");