2626#include " apps/helpers/tracing/tracer_appconfig_yaml_writer.h"
2727#include " apps/services/app_execution_metrics/executor_metrics_config_yaml_writer.h"
2828#include " apps/services/app_resource_usage/app_resource_usage_config_yaml_writer.h"
29+ #include " apps/services/buffer_pool/buffer_pool_config_yaml_writer.h"
2930#include " apps/services/metrics/metrics_config_yaml_writer.h"
3031#include " du_appconfig.h"
3132
@@ -53,21 +54,18 @@ static void fill_du_appconfig_expert_execution_section(YAML::Node node, const ex
5354 }
5455
5556 {
56- YAML::Node threads_node = node[" threads" ];
57- YAML::Node main_node = threads_node[" main_pool" ];
57+ YAML::Node threads_node = node[" threads" ];
58+ YAML::Node main_pool_node = threads_node[" main_pool" ];
5859 if (config.threads .main_pool .nof_threads .has_value ()) {
59- main_node[" nof_threads" ] = config.threads .main_pool .nof_threads .value ();
60+ main_pool_node[" nof_threads" ] = config.threads .main_pool .nof_threads .value ();
61+ } else {
62+ main_pool_node[" nof_threads" ] = " auto" ;
6063 }
61- main_node[" task_queue_size" ] = config.threads .main_pool .task_queue_size ;
64+ main_pool_node[" task_queue_size" ] = config.threads .main_pool .task_queue_size ;
65+ main_pool_node[" backoff_period" ] = config.threads .main_pool .backoff_period ;
6266 }
6367}
6468
65- static void fill_du_appconfig_buffer_pool_section (YAML::Node node, const buffer_pool_appconfig& config)
66- {
67- node[" nof_segments" ] = config.nof_segments ;
68- node[" segment_size" ] = config.segment_size ;
69- }
70-
7169static void fill_du_appconfig_remote_control_section (YAML::Node node, const remote_control_appconfig& config)
7270{
7371 node[" enabled" ] = config.enabled ;
@@ -92,11 +90,12 @@ void srsran::fill_du_appconfig_in_yaml_schema(YAML::Node& node, const du_appconf
9290 app_services::fill_app_resource_usage_config_in_yaml_schema (node, config.metrics_cfg .rusage_config );
9391 app_services::fill_metrics_appconfig_in_yaml_schema (node, config.metrics_cfg .metrics_service_cfg );
9492 app_services::fill_app_exec_metrics_config_in_yaml_schema (node, config.metrics_cfg .executors_metrics_cfg );
93+ node[" metrics" ][" autostart_stdout_metrics" ] = config.metrics_cfg .autostart_stdout_metrics ;
94+ app_services::fill_buffer_pool_config_in_yaml_schema (node, config.buffer_pool_config );
9595 fill_logger_appconfig_in_yaml_schema (node, config.log_cfg );
9696 fill_tracer_appconfig_in_yaml_schema (node, config.trace_cfg );
9797 fill_du_appconfig_hal_section (node, config.hal_config );
9898 fill_du_appconfig_expert_execution_section (node[" expert_execution" ], config.expert_execution_cfg );
99- fill_du_appconfig_buffer_pool_section (node[" buffer_pool" ], config.buffer_pool_config );
10099 fill_du_appconfig_remote_control_section (node[" remote_control" ], config.remote_control_config );
101100 fill_du_appconfig_f1u_section (node[" f1u" ], config.f1u_cfg );
102101 fill_du_appconfig_f1ap_section (node[" f1ap" ], config.f1ap_cfg );
0 commit comments