blob: 2bd8585db93c30df83d2d0740a596a56a2a1f8f7 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// SPDX-License-Identifier: GPL-2.0
2#include <linux/compiler.h>
3#include "dump-insn.h"
4
5/* Fallback code */
6
7__weak
8const 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)
11{
12 if (lenp)
13 *lenp = 0;
14 return "?";
15}
David Brazdil0f672f62019-12-10 10:32:29 +000016
17__weak
18int arch_is_branch(const unsigned char *buf __maybe_unused,
19 size_t len __maybe_unused,
20 int x86_64 __maybe_unused)
21{
22 return 0;
23}