Skip to content

Commit

Permalink
Add CAS FOM state name in m0trace (Seagate#1680)
Browse files Browse the repository at this point in the history
cas_fom_tick ENTRY record in m0trace includes numerical state ID.
This commit adds state name as text to that m0trace record.

Signed-off-by: Ivan Tishchenko <ivan.tishchenko@seagate.com>
  • Loading branch information
t7ko-seagate authored Apr 27, 2022
1 parent 0d3fb7b commit 89a3613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cas/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,9 @@ static int cas_fom_tick(struct m0_fom *fom0)
bool do_ctidx;
int next_phase;

M0_ENTRY("fom %p phase %d op_flag=0x%x", fom, phase, op->cg_flags);
M0_ENTRY("fom %p phase %d (%s) op_flag=0x%x", fom, phase,
m0_fom_phase_name(fom0, phase), op->cg_flags);

M0_PRE(ctidx != NULL);
M0_PRE(cas_fom_invariant(fom));
M0_PRE(ergo(is_dtm0_used, m0_dtm0_tx_desc__invariant(&op->cg_txd)));
Expand Down

0 comments on commit 89a3613

Please sign in to comment.