|
|
|
/**
|
|
|
|
*
|
|
|
|
* \section COPYRIGHT
|
|
|
|
*
|
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
|
|
|
*
|
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the distribution.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SRSLTE_ENB_METRICS_INTERFACE_H
|
|
|
|
#define SRSLTE_ENB_METRICS_INTERFACE_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "srsenb/hdr/phy/phy_metrics.h"
|
|
|
|
#include "srsenb/hdr/stack/mac/mac_metrics.h"
|
|
|
|
#include "srsenb/hdr/stack/rrc/rrc_metrics.h"
|
|
|
|
#include "srsenb/hdr/stack/upper/common_enb.h"
|
|
|
|
#include "srsenb/hdr/stack/upper/s1ap_metrics.h"
|
|
|
|
#include "srslte/common/metrics_hub.h"
|
|
|
|
#include "srslte/radio/radio_metrics.h"
|
|
|
|
#include "srslte/upper/rlc_metrics.h"
|
|
|
|
#include "srsue/hdr/stack/upper/gw_metrics.h"
|
|
|
|
|
|
|
|
namespace srsenb {
|
|
|
|
|
|
|
|
struct rlc_metrics_t {
|
|
|
|
std::vector<srslte::rlc_metrics_t> ues;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct stack_metrics_t {
|
|
|
|
mac_metrics_t mac;
|
|
|
|
rrc_metrics_t rrc;
|
|
|
|
rlc_metrics_t rlc;
|
|
|
|
s1ap_metrics_t s1ap;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct enb_metrics_t {
|
|
|
|
srslte::rf_metrics_t rf;
|
|
|
|
std::vector<phy_metrics_t> phy;
|
|
|
|
stack_metrics_t stack;
|
|
|
|
bool running;
|
|
|
|
};
|
|
|
|
|
|
|
|
// ENB interface
|
|
|
|
class enb_metrics_interface : public srslte::metrics_interface<enb_metrics_t>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual bool get_metrics(enb_metrics_t* m) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsenb
|
|
|
|
|
|
|
|
#endif // SRSLTE_ENB_METRICS_INTERFACE_H
|