Skip to content

Commit 8ee904b

Browse files
ckf104Michael Tokarev
authored andcommitted
contrib/plugins/bbv.c: Start bb index from 1
Standard simpoint tool reqeusts that index of basic block index starts from 1. Signed-off-by: ckf104 <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Reviewed-by: Michael Tokarev <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
1 parent a874319 commit 8ee904b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/plugins/bbv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct qemu_plugin_tb *tb)
109109
bb = g_new(Bb, 1);
110110
bb->vaddr = vaddr;
111111
bb->count = qemu_plugin_scoreboard_new(sizeof(uint64_t));
112-
bb->index = g_hash_table_size(bbs);
112+
bb->index = g_hash_table_size(bbs) + 1;
113113
g_hash_table_replace(bbs, &bb->vaddr, bb);
114114
}
115115
g_rw_lock_writer_unlock(&bbs_lock);

0 commit comments

Comments
 (0)