1414#include " apps/helpers/tracing/tracer_appconfig_yaml_writer.h"
1515#include " apps/services/app_execution_metrics/executor_metrics_config_yaml_writer.h"
1616#include " apps/services/app_resource_usage/app_resource_usage_config_yaml_writer.h"
17+ #include " apps/services/buffer_pool/buffer_pool_config_yaml_writer.h"
1718#include " apps/services/metrics/metrics_config_yaml_writer.h"
1819#include " du_appconfig.h"
1920
@@ -41,21 +42,18 @@ static void fill_du_appconfig_expert_execution_section(YAML::Node node, const ex
4142 }
4243
4344 {
44- YAML::Node threads_node = node[" threads" ];
45- YAML::Node main_node = threads_node[" main_pool" ];
45+ YAML::Node threads_node = node[" threads" ];
46+ YAML::Node main_pool_node = threads_node[" main_pool" ];
4647 if (config.threads .main_pool .nof_threads .has_value ()) {
47- main_node[" nof_threads" ] = config.threads .main_pool .nof_threads .value ();
48+ main_pool_node[" nof_threads" ] = config.threads .main_pool .nof_threads .value ();
49+ } else {
50+ main_pool_node[" nof_threads" ] = " auto" ;
4851 }
49- main_node[" task_queue_size" ] = config.threads .main_pool .task_queue_size ;
52+ main_pool_node[" task_queue_size" ] = config.threads .main_pool .task_queue_size ;
53+ main_pool_node[" backoff_period" ] = config.threads .main_pool .backoff_period ;
5054 }
5155}
5256
53- static void fill_du_appconfig_buffer_pool_section (YAML::Node node, const buffer_pool_appconfig& config)
54- {
55- node[" nof_segments" ] = config.nof_segments ;
56- node[" segment_size" ] = config.segment_size ;
57- }
58-
5957static void fill_du_appconfig_remote_control_section (YAML::Node node, const remote_control_appconfig& config)
6058{
6159 node[" enabled" ] = config.enabled ;
@@ -80,11 +78,12 @@ void srsran::fill_du_appconfig_in_yaml_schema(YAML::Node& node, const du_appconf
8078 app_services::fill_app_resource_usage_config_in_yaml_schema (node, config.metrics_cfg .rusage_config );
8179 app_services::fill_metrics_appconfig_in_yaml_schema (node, config.metrics_cfg .metrics_service_cfg );
8280 app_services::fill_app_exec_metrics_config_in_yaml_schema (node, config.metrics_cfg .executors_metrics_cfg );
81+ node[" metrics" ][" autostart_stdout_metrics" ] = config.metrics_cfg .autostart_stdout_metrics ;
82+ app_services::fill_buffer_pool_config_in_yaml_schema (node, config.buffer_pool_config );
8383 fill_logger_appconfig_in_yaml_schema (node, config.log_cfg );
8484 fill_tracer_appconfig_in_yaml_schema (node, config.trace_cfg );
8585 fill_du_appconfig_hal_section (node, config.hal_config );
8686 fill_du_appconfig_expert_execution_section (node[" expert_execution" ], config.expert_execution_cfg );
87- fill_du_appconfig_buffer_pool_section (node[" buffer_pool" ], config.buffer_pool_config );
8887 fill_du_appconfig_remote_control_section (node[" remote_control" ], config.remote_control_config );
8988 fill_du_appconfig_f1u_section (node[" f1u" ], config.f1u_cfg );
9089 fill_du_appconfig_f1ap_section (node[" f1ap" ], config.f1ap_cfg );
0 commit comments