Skip to content

Commit a1a4869

Browse files
committed
[ot] hw/opentitan: ot_aes: add trace for selected reseed rates
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent ac142c5 commit a1a4869

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

hw/opentitan/ot_aes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ static inline void ot_aes_load_reseed_rate(OtAESState *s)
399399
break;
400400
}
401401

402+
trace_ot_aes_reseed_rate(reseed);
403+
402404
s->reseed_count = reseed;
403405
}
404406

hw/opentitan/trace-events

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ot_aes_io_read_out(uint32_t addr, const char * regname, uint32_t val, uint32_t p
1212
ot_aes_io_write(uint32_t addr, const char * regname, uint32_t val, uint32_t pc) "addr=0x%02x (%s), val=0x%x, pc=0x%x"
1313
ot_aes_request_entropy(void) ""
1414
ot_aes_reseed(const char *reason) "%s"
15+
ot_aes_reseed_rate(unsigned rate) "%u"
1516
ot_aes_schedule(void) ""
1617

1718
# ot_alert.c

0 commit comments

Comments
 (0)