From 184668e70a2ef1fd1fe75f002bf1577612a77479 Mon Sep 17 00:00:00 2001 From: Eduard Zingerman Date: Mon, 23 Jan 2023 16:46:28 +0200 Subject: [PATCH] add a comment for converted BPF_ST --- rewrite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rewrite.py b/rewrite.py index 41df9c3..edefe41 100755 --- a/rewrite.py +++ b/rewrite.py @@ -826,6 +826,7 @@ def replace_st_mem(insns): src = f'r{free_reg}' # TODO: should this be 'w' ? new_insns.append(d('{src} = {imm};')) new_insns.append(d('*({sz}*)({dst} {sign} {off}) = {src};')) + new_insns[0].comment = '/* CHECK ME: converted BPF_ST */' else: new_insns.append(insn) if insn.st_mem: