1 // SPDX-License-Identifier: GPL-2.0
2 #include "../../../../arch/x86/include/asm/insn.h"
9 void arch_fetch_insn(struct perf_sample
*sample
,
10 struct thread
*thread
,
11 struct machine
*machine
)
19 len
= thread__memcpy(thread
, machine
, sample
->insn
, sample
->ip
, sizeof(sample
->insn
), &is64bit
);
22 insn_init(&insn
, sample
->insn
, len
, is64bit
);
23 insn_get_length(&insn
);
24 if (insn_complete(&insn
) && insn
.length
<= len
)
25 sample
->insn_len
= insn
.length
;