Skip to content

Commit

Permalink
add a comment for converted BPF_ST
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyz87 committed Jan 23, 2023
1 parent 6a0b9b9 commit 184668e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 184668e

Please sign in to comment.