Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / dump-insn.c
blobc1cc0ade48d05e5ee51ebe9c050705717937cba5
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/compiler.h>
3 #include "dump-insn.h"
5 /* Fallback code */
7 __weak
8 const char *dump_insn(struct perf_insn *x __maybe_unused,
9 u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
10 int inlen __maybe_unused, int *lenp)
12 if (lenp)
13 *lenp = 0;
14 return "?";
17 __weak
18 int arch_is_uncond_branch(const unsigned char *buf __maybe_unused,
19 size_t len __maybe_unused,
20 int x86_64 __maybe_unused)
22 return 0;