From 35466f03969e5d6682fc8a438a74be8df8dc6357 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 5 Feb 2021 09:46:22 +0100 Subject: [PATCH] logger: show pressure_mode for debugging --- kernel/mars_trans_logger.c | 3 +++ kernel/mars_trans_logger.h | 1 + 2 files changed, 4 insertions(+) diff --git a/kernel/mars_trans_logger.c b/kernel/mars_trans_logger.c index 21303cfb..320b6724 100644 --- a/kernel/mars_trans_logger.c +++ b/kernel/mars_trans_logger.c @@ -2409,6 +2409,7 @@ int _do_ranking(struct trans_logger_brick *brick) pressure_mode = 0; else if (trans_logger_disable_pressure < 0) pressure_mode = 1; + brick->pressure_mode = pressure_mode; if (delay_callers) { if (!brick->delay_callers) { @@ -3305,6 +3306,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose) "log_reads=%d | " "cease_logging=%d " "stopped_logging=%d " + "pressure_mode=%d " "congested=%d | " "replay_start_pos = %lld " "replay_end_pos = %lld | " @@ -3363,6 +3365,7 @@ char *trans_logger_statistics(struct trans_logger_brick *brick, int verbose) brick->log_reads, brick->cease_logging, brick->stopped_logging, + brick->pressure_mode, _congested(brick), brick->replay_start_pos, brick->replay_end_pos, diff --git a/kernel/mars_trans_logger.h b/kernel/mars_trans_logger.h index febabbfd..a0e01591 100644 --- a/kernel/mars_trans_logger.h +++ b/kernel/mars_trans_logger.h @@ -238,6 +238,7 @@ struct trans_logger_brick { atomic_t total_restart_count; atomic_t total_delay_count; #endif + int pressure_mode; // queues struct logger_queue q_phase[LOGGER_QUEUES]; struct rank_data rkd[LOGGER_QUEUES];