Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / util / print_insn.h
blob07d11af3fc1cbe7da44ce50066d3126952dd2530
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef PERF_PRINT_INSN_H
3 #define PERF_PRINT_INSN_H
5 #include <stddef.h>
6 #include <stdio.h>
8 struct perf_sample;
9 struct thread;
10 struct machine;
11 struct perf_insn;
13 #define PRINT_INSN_IMM_HEX (1<<0)
15 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread,
16 struct machine *machine, FILE *fp, struct addr_location *al);
17 size_t sample__fprintf_insn_raw(struct perf_sample *sample, FILE *fp);
18 ssize_t fprintf_insn_asm(struct machine *machine, struct thread *thread, u8 cpumode,
19 bool is64bit, const uint8_t *code, size_t code_size,
20 uint64_t ip, int *lenp, int print_opts, FILE *fp);
22 #endif /* PERF_PRINT_INSN_H */