Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/compiler.h>
0003 #include "dump-insn.h"
0004 
0005 /* Fallback code */
0006 
0007 __weak
0008 const char *dump_insn(struct perf_insn *x __maybe_unused,
0009               u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
0010               int inlen __maybe_unused, int *lenp)
0011 {
0012     if (lenp)
0013         *lenp = 0;
0014     return "?";
0015 }
0016 
0017 __weak
0018 int arch_is_branch(const unsigned char *buf __maybe_unused,
0019            size_t len __maybe_unused,
0020            int x86_64 __maybe_unused)
0021 {
0022     return 0;
0023 }