projects
/
platform
/
kernel
/
opensbi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76a2a15
)
lib: sbi: Print number of debug triggers found
author
Himanshu Chauhan
<hchauhan@ventanamicro.com>
Tue, 9 Jan 2024 17:00:20 +0000
(22:30 +0530)
committer
Anup Patel
<anup@brainfault.org>
Wed, 10 Jan 2024 05:25:52 +0000
(10:55 +0530)
Print the total number of triggers found on the boot hart.
Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_init.c
patch
|
blob
|
history
diff --git
a/lib/sbi/sbi_init.c
b/lib/sbi/sbi_init.c
index 0dcde27dddb6f7548c1799794475720ab373afce..804b01cd91cb4c533fc7ffa7e1d766607921ef7e 100644
(file)
--- a/
lib/sbi/sbi_init.c
+++ b/
lib/sbi/sbi_init.c
@@
-184,6
+184,8
@@
static void sbi_boot_print_hart(struct sbi_scratch *scratch, u32 hartid)
sbi_printf("Boot HART MHPM Info : %lu (0x%08x)\n",
sbi_popcount(sbi_hart_mhpm_mask(scratch)),
sbi_hart_mhpm_mask(scratch));
+ sbi_printf("Boot HART Debug Triggers : %d triggers\n",
+ sbi_dbtr_get_total_triggers());
sbi_hart_delegation_dump(scratch, "Boot HART ", " ");
}