xref: /kernel/linux/linux-6.6/tools/perf/util/dump-insn.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/perf/util/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __PERF_DUMP_INSN_H
362306a36Sopenharmony_ci#define __PERF_DUMP_INSN_H 1
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#define MAXINSN 15
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include <linux/types.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_cistruct thread;
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_cistruct perf_insn {
1262306a36Sopenharmony_ci	/* Initialized by callers: */
1362306a36Sopenharmony_ci	struct thread *thread;
1462306a36Sopenharmony_ci	u8	      cpumode;
1562306a36Sopenharmony_ci	bool	      is64bit;
1662306a36Sopenharmony_ci	int	      cpu;
1762306a36Sopenharmony_ci	/* Temporary */
1862306a36Sopenharmony_ci	char	      out[256];
1962306a36Sopenharmony_ci};
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconst char *dump_insn(struct perf_insn *x, u64 ip,
2262306a36Sopenharmony_ci		      u8 *inbuf, int inlen, int *lenp);
2362306a36Sopenharmony_ciint arch_is_branch(const unsigned char *buf, size_t len, int x86_64);
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024