mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
perf dump-insn: Remove dump-insn.c
dump_insn and arch_is_uncond_branch are declared in intel-pt-insn-decoder.c which is unconditionally part of all perf builds. Don't declare weak versions of these symbols that will be unused. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
ed09766cd0
commit
8e6f3103c0
|
|
@ -149,7 +149,6 @@ endif
|
|||
perf-util-y += cs-etm-base.o
|
||||
|
||||
perf-util-y += parse-branch-options.o
|
||||
perf-util-y += dump-insn.o
|
||||
perf-util-y += parse-regs-options.o
|
||||
perf-util-y += parse-sublevel-options.o
|
||||
perf-util-y += term.o
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <linux/compiler.h>
|
||||
#include "dump-insn.h"
|
||||
|
||||
/* Fallback code */
|
||||
|
||||
__weak
|
||||
const char *dump_insn(struct perf_insn *x __maybe_unused,
|
||||
u64 ip __maybe_unused, u8 *inbuf __maybe_unused,
|
||||
int inlen __maybe_unused, int *lenp)
|
||||
{
|
||||
if (lenp)
|
||||
*lenp = 0;
|
||||
return "?";
|
||||
}
|
||||
|
||||
__weak
|
||||
int arch_is_uncond_branch(const unsigned char *buf __maybe_unused,
|
||||
size_t len __maybe_unused,
|
||||
int x86_64 __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user