Hi,
I'm trying to inject a function record_reg_val to some specific instructions. I have an id_to_ssa_map to keep a map from opcode_id to sass string like the example code.
I record the map right before nvbit_insert_call:
And then, I print the opcode_id in each thread (by calling printf inside the record_reg_val injection function) and the map id_to_ssa_map at the termination. It gives the following result:
As you can see, not all the instructions call the inject function record_reg_val, but they are supposed to do that (Notice I fill the map just before nvbit_insert_call). Do you know what caused this problem?
Hi, I'm trying to inject a function
record_reg_val
to some specific instructions. I have anid_to_ssa_map
to keep a map fromopcode_id
tosass
string like the example code.I record the map right before
nvbit_insert_call
:And then, I print the
opcode_id
in each thread (by callingprintf
inside therecord_reg_val
injection function) and the mapid_to_ssa_map
at the termination. It gives the following result:As you can see, not all the instructions call the inject function
record_reg_val
, but they are supposed to do that (Notice I fill the map just beforenvbit_insert_call
). Do you know what caused this problem?Thanks!