File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
contrib/plugins/bap-tracing Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
static TraceState state ;
9
9
10
+ static void log_insn_mem_access (unsigned int vcpu_index ,
11
+ qemu_plugin_meminfo_t info , uint64_t vaddr ,
12
+ void * userdata ) {}
13
+
10
14
static void log_insn_reg_access (unsigned int vcpu_index , void * udata ) {
11
15
g_rw_lock_reader_lock (& state .vcpus_array_lock );
12
16
// VCPU *c = &g_array_index(state.vcpus, VCPU, vcpu_index);
@@ -75,6 +79,9 @@ static void cb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb) {
75
79
insn = qemu_plugin_tb_get_insn (tb , i );
76
80
qemu_plugin_register_vcpu_insn_exec_cb (insn , log_insn_reg_access ,
77
81
QEMU_PLUGIN_CB_R_REGS , NULL );
82
+ qemu_plugin_register_vcpu_mem_cb (insn , log_insn_mem_access ,
83
+ QEMU_PLUGIN_CB_R_REGS , QEMU_PLUGIN_MEM_R ,
84
+ NULL );
78
85
}
79
86
}
80
87
You can’t perform that action at this time.
0 commit comments