[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/11] contrib/plugins/bbv.c: Start bb index from 1
From: |
Michael Tokarev |
Subject: |
[PULL 10/11] contrib/plugins/bbv.c: Start bb index from 1 |
Date: |
Sat, 28 Dec 2024 14:54:45 +0300 |
From: ckf104 <1900011634@pku.edu.cn>
Standard simpoint tool reqeusts that index of basic block index starts from 1.
Signed-off-by: ckf104 <1900011634@pku.edu.cn>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
contrib/plugins/bbv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/bbv.c b/contrib/plugins/bbv.c
index a5256517dd..b9da6f815e 100644
--- a/contrib/plugins/bbv.c
+++ b/contrib/plugins/bbv.c
@@ -109,7 +109,7 @@ static void vcpu_tb_trans(qemu_plugin_id_t id, struct
qemu_plugin_tb *tb)
bb = g_new(Bb, 1);
bb->vaddr = vaddr;
bb->count = qemu_plugin_scoreboard_new(sizeof(uint64_t));
- bb->index = g_hash_table_size(bbs);
+ bb->index = g_hash_table_size(bbs) + 1;
g_hash_table_replace(bbs, &bb->vaddr, bb);
}
g_rw_lock_writer_unlock(&bbs_lock);
--
2.39.5
- [PULL 01/11] docs/devel: remove dead video link for sourcehut submit process, (continued)
- [PULL 01/11] docs/devel: remove dead video link for sourcehut submit process, Michael Tokarev, 2024/12/28
- [PULL 02/11] hw/timer/hpet: Fix comment about capabilities register, Michael Tokarev, 2024/12/28
- [PULL 05/11] docs: Correct '-runas' and '-fsdev/-virtfs proxy' indentation, Michael Tokarev, 2024/12/28
- [PULL 06/11] docs: Correct release of TCG trace-events removal, Michael Tokarev, 2024/12/28
- [PULL 09/11] hw/riscv/riscv-iommu-sys.c: fix duplicated 'table_size', Michael Tokarev, 2024/12/28
- [PULL 11/11] qmp: update vhost-user protocol feature maps, Michael Tokarev, 2024/12/28
- [PULL 03/11] hw/timer/hpet: Drop the unused macro, Michael Tokarev, 2024/12/28
- [PULL 04/11] vvfat: fix ubsan issue in create_long_filename, Michael Tokarev, 2024/12/28
- [PULL 10/11] contrib/plugins/bbv.c: Start bb index from 1,
Michael Tokarev <=
- [PULL 08/11] target/i386/cpu: Fix notes for CPU models, Michael Tokarev, 2024/12/28
- [PULL 07/11] docs: Replace 'since' -> 'removed in' in removed-features.rst, Michael Tokarev, 2024/12/28
- Re: [PULL 00/11] Trivial patches for 2024-12-28, Stefan Hajnoczi, 2024/12/28