On 1/5/2024 9:26 PM, Eduard Zingerman wrote: > On Fri, 2024-01-05 at 18:48 +0800, Hou Tao wrote: >> From: Hou Tao <houtao1@xxxxxxxxxx> >> >> The test uses bpf_prog_get_info_by_fd() to obtain the xlated >> instructions of the program first. Since these instructions have >> already been rewritten by the verifier, the tests then checks whether >> the rewritten instructions are as expected. And to ensure LLVM generates >> code exactly as expected, use inline assembly and a naked function. >> >> Suggested-by: Eduard Zingerman <eddyz87@xxxxxxxxx> >> Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx> >> --- > Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> > > Thank you for this adjustment. And thanks for the suggestions. Due to these great suggestions, I have learned how to write BPF assembly code.