summaryrefslogtreecommitdiffstats
path: root/src/internal_api
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-05-31 13:57:12 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-05-31 13:57:12 +0300
commit84fc182fd1021b0ad564478f284afff660a5b924 (patch)
tree89c7850091469158182d0c7b38f399745a15d574 /src/internal_api
parent06f5cc0b5892712242344fb42cbafd873c5d0209 (diff)
add rpc command get_cpu_util_full to cpp
Diffstat (limited to 'src/internal_api')
-rw-r--r--src/internal_api/trex_platform_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h
index a52f9e60..ca37b0da 100644
--- a/src/internal_api/trex_platform_api.h
+++ b/src/internal_api/trex_platform_api.h
@@ -156,6 +156,7 @@ public:
virtual bool get_promiscuous(uint8_t port_id) const = 0;
virtual void flush_dp_messages() const = 0;
virtual int get_active_pgids(flow_stat_active_t &result) const = 0;
+ virtual int get_cpu_util_full(cpu_util_full_t &result) const = 0;
virtual CFlowStatParser *get_flow_stat_parser() const = 0;
virtual ~TrexPlatformApi() {}
};
@@ -188,6 +189,7 @@ public:
bool get_promiscuous(uint8_t port_id) const;
void flush_dp_messages() const;
int get_active_pgids(flow_stat_active_t &result) const;
+ int get_cpu_util_full(cpu_util_full_t &result) const;
CFlowStatParser *get_flow_stat_parser() const;
};
@@ -252,6 +254,7 @@ public:
void flush_dp_messages() const {
}
int get_active_pgids(flow_stat_active_t &result) const {return 0;}
+ int get_cpu_util_full(cpu_util_full_t &result) const {return 0;}
CFlowStatParser *get_flow_stat_parser() const {return new CFlowStatParser();}
private: