|
|
@ -19,6 +19,7 @@
|
|
|
|
#define SRSLTE_COMMON_HELPER_H
|
|
|
|
#define SRSLTE_COMMON_HELPER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "srslte/common/logmap.h"
|
|
|
|
#include "srslte/common/logmap.h"
|
|
|
|
|
|
|
|
#include "srslte/srslog/srslog.h"
|
|
|
|
#include <fstream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <sstream>
|
|
|
|
#include <sstream>
|
|
|
|
#include <thread>
|
|
|
|
#include <thread>
|
|
|
@ -34,8 +35,8 @@ inline void log_args(int argc, char* argv[], const std::string& service)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
s1 << std::endl;
|
|
|
|
s1 << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
srslte::logmap::get(service)->set_level(srslte::LOG_LEVEL_INFO);
|
|
|
|
srslog::fetch_basic_logger(service, false).set_level(srslog::basic_levels::info);
|
|
|
|
srslte::logmap::get(service)->info("%s", s1.str().c_str());
|
|
|
|
srslog::fetch_basic_logger(service).info("%s", s1.str().c_str());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void check_scaling_governor(const std::string& device_name)
|
|
|
|
inline void check_scaling_governor(const std::string& device_name)
|
|
|
|