o-du/phy
Intel O-RAN/X-RAN Generated Doxygen Documentation
Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
U_planePerf Class Reference
Inheritance diagram for U_planePerf:
Inheritance graph
Collaboration diagram for U_planePerf:
Collaboration graph

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static unsigned get_number_of_cases (const std::string &type)
 

Static Public Attributes

static json conf
 
static std::string test_type
 

Protected Member Functions

void SetUp () override
 
void TearDown () override
 
void fucntional_dl (F function, int32_t *request, int32_t *response)
 
void set_division_factor (const double factor)
 Set division factor. More...
 
void set_results_units (const std::string &units)
 Set reults units. More...
 
void set_parallelization_factor (const int factor)
 Set size of processed data. More...
 
template<typename F , typename ... Args>
void performance (const std::string &isa, const std::string &module_name, F function, Args ... args)
 Run performance test case for a given function. More...
 
void print_test_description (const std::string &isa, const std::string &module_name)
 Print unique test description to the results xml file. More...
 
const std::string get_case_name ()
 Get name of the test case from JSON file. More...
 
void init_test (const std::string &type)
 Defines section in the conf.json that is used to load parameters from. More...
 
template<typename T >
get_input_parameter (const std::string &parameter_name)
 Load selected data from a JSON object. get_input_parameter loads data from parameters section of the test case in JSON file and get_reference_parameter does the same thing for references section. More...
 
template<typename T >
get_reference_parameter (const std::string &parameter_name)
 

Protected Attributes

int32_t request
 
int32_t response
 
struct rte_mbuf * test_buffer
 
char * iq_offset
 
struct rte_mempool * test_eth_mbuf_pool
 
double division_factor = 1.0
 
std::string result_units = "None"
 
int parallelization_factor = 1
 

Detailed Description

Definition at line 30 of file u_plane_performance.cc.

Member Function Documentation

◆ fucntional_dl()

void fucntional_dl ( function,
int32_t *  request,
int32_t *  response 
)
inlineprotected

Definition at line 66 of file u_plane_performance.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_case_name()

const std::string get_case_name ( )
inlineprotectedinherited

Get name of the test case from JSON file.

Returns
Test'ss case name or a default name if name field is missing.

Definition at line 338 of file common.hpp.

◆ get_input_parameter()

T get_input_parameter ( const std::string &  parameter_name)
inlineprotectedinherited

Load selected data from a JSON object. get_input_parameter loads data from parameters section of the test case in JSON file and get_reference_parameter does the same thing for references section.

Get parameter function uses template type to figure out how to load parameters. If type is NOT a pointer it'll load value directly from the JSON. Otherwise path to the test vector is expected and function will allocate memory, load data from the binary file to this memory location and return pointer to it. For example in here we request to load pointer to float so llrs filed is expected to be a path to the binary file.

Definition at line 290 of file common.hpp.

Here is the call graph for this function:

◆ get_number_of_cases()

static unsigned get_number_of_cases ( const std::string &  type)
inlinestaticinherited

Definition at line 190 of file common.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_reference_parameter()

T get_reference_parameter ( const std::string &  parameter_name)
inlineprotectedinherited

Definition at line 312 of file common.hpp.

Here is the call graph for this function:

◆ init_test()

void init_test ( const std::string &  type)
inlineprotectedinherited

Defines section in the conf.json that is used to load parameters from.

Parameters
[in]typeName of the section in the JSON file.

Definition at line 358 of file common.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ performance()

void performance ( const std::string &  isa,
const std::string &  module_name,
function,
Args ...  args 
)
inlineprotectedinherited

Run performance test case for a given function.

Parameters
[in]isaUsed Instruction Set.
[in]module_namename of the tested kernel.
[in]functionfunction to be tested.
[in]argsfunction's arguments.

Definition at line 253 of file common.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_test_description()

void print_test_description ( const std::string &  isa,
const std::string &  module_name 
)
inlineprotectedinherited

Print unique test description to the results xml file.

Parameters
[in]isaUsed Instruction Set.
[in]module_namename of the tested kernel.
[in]functionfunction to be tested.

Definition at line 271 of file common.hpp.

◆ set_division_factor()

void set_division_factor ( const double  factor)
inlineprotectedinherited

Set division factor.

Parameters
[in]factorDivision factor that divides mean and standard deviation.

Definition at line 222 of file common.hpp.

◆ set_parallelization_factor()

void set_parallelization_factor ( const int  factor)
inlineprotectedinherited

Set size of processed data.

Parameters
[in]sizeSize of processed data used to calculate module throughput.

Definition at line 240 of file common.hpp.

◆ set_results_units()

void set_results_units ( const std::string &  units)
inlineprotectedinherited

Set reults units.

Parameters
[in]unitsUnits that are displayed in the report.

Definition at line 231 of file common.hpp.

◆ SetUp()

void SetUp ( )
inlineoverrideprotected

Definition at line 41 of file u_plane_performance.cc.

Here is the call graph for this function:

◆ SetUpTestCase()

static void SetUpTestCase ( )
inlinestaticinherited

Definition at line 162 of file common.hpp.

Here is the call graph for this function:

◆ TearDown()

void TearDown ( )
inlineoverrideprotected

Definition at line 61 of file u_plane_performance.cc.

◆ TearDownTestCase()

static void TearDownTestCase ( )
inlinestaticinherited

Definition at line 185 of file common.hpp.

Field Documentation

◆ conf

json conf
staticinherited

Definition at line 159 of file common.hpp.

◆ division_factor

double division_factor = 1.0
protectedinherited

Definition at line 214 of file common.hpp.

◆ iq_offset

char* iq_offset
protected

Definition at line 38 of file u_plane_performance.cc.

◆ parallelization_factor

int parallelization_factor = 1
protectedinherited

Definition at line 216 of file common.hpp.

◆ request

int32_t request
protected

Definition at line 34 of file u_plane_performance.cc.

◆ response

int32_t response
protected

Definition at line 35 of file u_plane_performance.cc.

◆ result_units

std::string result_units = "None"
protectedinherited

Definition at line 215 of file common.hpp.

◆ test_buffer

struct rte_mbuf* test_buffer
protected

Definition at line 37 of file u_plane_performance.cc.

◆ test_eth_mbuf_pool

struct rte_mempool* test_eth_mbuf_pool
protected

Definition at line 39 of file u_plane_performance.cc.

◆ test_type

std::string test_type
staticinherited

Definition at line 160 of file common.hpp.


The documentation for this class was generated from the following file: