^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <linux/compiler.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #include "dump-insn.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) /* Fallback code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) __weak
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) const char *dump_insn(struct perf_insn *x __maybe_unused,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) int inlen __maybe_unused, int *lenp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) if (lenp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) *lenp = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) return "?";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) __weak
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int arch_is_branch(const unsigned char *buf __maybe_unused,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) size_t len __maybe_unused,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) int x86_64 __maybe_unused)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) }