PandA-2024.02
Data Structures | Functions | Variables
test_panda Namespace Reference

Data Structures

class  StoreOrUpdateMin
 

Functions

def positive_integer (value)
 
def GetChildren (parent_pid)
 
def kill_proc_tree (pid)
 
def execute_tests (named_list, thread_index)
 
def ComputeDirectory (line)
 
def SearchCFiles (directory)
 
def CollectResults (directory)
 
def CreateJunitBody (directory, ju_file)
 
def CreatePerfPublisherBody (directory, pp_file)
 

Variables

int line_index = 0
 
bool failure = False
 
 parser = argparse.ArgumentParser(description="Performs panda tests", fromfile_prefix_chars='@')
 
 help
 
 nargs
 
 action
 
 default
 
 type
 
 positive_integer
 
 False
 
 args = parser.parse_args()
 
 n_jobs = args.j
 
 level
 
 INFO
 
 format
 
 abs_script = os.path.abspath(sys.argv[0])
 
list modified_argv = []
 
string abs_configuration_dir = ""
 
 table = os.path.abspath(args.table)
 
string junit_file_name = ""
 
int junit_index = 0
 
string perfpublisher_name = ""
 
string perfpublisher_file_name = ""
 
int perfpublisher_index = 0
 
 abs_path = os.path.abspath(args.output)
 
 restart
 
 failed_counter_file_name = os.path.join(abs_path, "failed_counter")
 
 failed_counter_file = open(failed_counter_file_name)
 
 failed_counter = failed_counter_file.read()
 
string tool_exe = ""
 
 exe_file = os.path.join(path, "bambu")
 
string abs_benchmarks_root = abs_configuration_dir
 
string spider = ""
 
 mutt = None
 
list abs_lists = []
 
list files_list = []
 
 temp_list = open(os.path.join(abs_path, "temp_list"), "w")
 
 reordered_list_name = os.path.join(abs_path, "reordered_list")
 
 reordered_list = open(reordered_list_name, "w")
 
 list_file = open(abs_list)
 
 lines = list_file.readlines()
 
 tokens = shlex.split(line)
 
 parameters = list()
 
bool follow_param = False
 
 expanded_list_name = os.path.join(abs_path, "expanded_list")
 
 expanded_list = open(expanded_list_name, "w")
 
 first_parameter = os.path.join(abs_benchmarks_root, tokens[0])
 
 other_parameters = tokens[1:len(tokens)]
 
def c_files = SearchCFiles(first_parameter)
 
 arg_lists = args.args
 
 arged_list_name = os.path.join(abs_path, "arged_list")
 
 arged_list = open(arged_list_name, "w")
 
 arg = arg_list[0]
 
 full_names = set()
 
 named_list_name = os.path.join(abs_path, "named_list")
 
 named_list = open(named_list_name, "w")
 
string configuration_name = ""
 
string benchmark_name = ""
 
string full_name = configuration_name + ":" + benchmark_name
 
def new_dir = ComputeDirectory(line)
 
 lock = threading.RLock()
 
 lock_creation_destruction = threading.RLock()
 
int passed_benchmark = 0
 
int total_benchmark = 0
 
list threads = []
 
list children = [None] * n_jobs
 
 daemon
 
 junit_file = open(junit_file_name, "w")
 
 perfpublisher_file = open(perfpublisher_file_name, "w")
 
 report_file_name = os.path.join(abs_path, "report")
 
 report_file = open(report_file_name)
 
list command = [tool_exe, "--version"]
 
 stderr
 
 stdout
 
string outcome = ""
 
string local_command = "cat " + report_file_name + " | mutt -s \"" + full_name + ": " + outcome + "\" " + args.mail
 
 shell
 
 csv = os.path.abspath(args.csv)
 
string escape_pattern = "(-|_|\{|\}|=|!|\$|#|&|\"|\'|\(|\)|\||<|>|`|\\\|;|\.|,)"
 

Function Documentation

◆ CollectResults()

def test_panda.CollectResults (   directory)

Definition at line 197 of file test_panda.py.

References ComputeDirectory(), map, read(), and str.

Referenced by test_panda.StoreOrUpdateMin.__call__().

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

◆ ComputeDirectory()

def test_panda.ComputeDirectory (   line)

Definition at line 173 of file test_panda.py.

Referenced by test_panda.StoreOrUpdateMin.__call__(), CollectResults(), and execute_tests().

Here is the caller graph for this function:

◆ CreateJunitBody()

def test_panda.CreateJunitBody (   directory,
  ju_file 
)

Definition at line 294 of file test_panda.py.

References str.

Referenced by test_panda.StoreOrUpdateMin.__call__().

Here is the caller graph for this function:

◆ CreatePerfPublisherBody()

def test_panda.CreatePerfPublisherBody (   directory,
  pp_file 
)

Definition at line 346 of file test_panda.py.

References str.

Referenced by test_panda.StoreOrUpdateMin.__call__().

Here is the caller graph for this function:

◆ execute_tests()

def test_panda.execute_tests (   named_list,
  thread_index 
)

Definition at line 54 of file test_panda.py.

References ComputeDirectory(), kill_proc_tree(), and str.

Referenced by test_panda.StoreOrUpdateMin.__call__().

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

◆ GetChildren()

def test_panda.GetChildren (   parent_pid)

Definition at line 38 of file test_panda.py.

Referenced by test_panda.StoreOrUpdateMin.__call__(), and kill_proc_tree().

Here is the caller graph for this function:

◆ kill_proc_tree()

def test_panda.kill_proc_tree (   pid)

Definition at line 48 of file test_panda.py.

References GetChildren().

Referenced by test_panda.StoreOrUpdateMin.__call__(), and execute_tests().

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

◆ positive_integer()

def test_panda.positive_integer (   value)

Definition at line 21 of file test_panda.py.

References positive_integer.

◆ SearchCFiles()

def test_panda.SearchCFiles (   directory)

Definition at line 186 of file test_panda.py.

References str.

Referenced by test_panda.StoreOrUpdateMin.__call__().

Here is the caller graph for this function:

Variable Documentation

◆ abs_benchmarks_root

string test_panda.abs_benchmarks_root = abs_configuration_dir

Definition at line 601 of file test_panda.py.

◆ abs_configuration_dir

string test_panda.abs_configuration_dir = ""

Definition at line 478 of file test_panda.py.

◆ abs_lists

list test_panda.abs_lists = []

Definition at line 666 of file test_panda.py.

◆ abs_path

test_panda.abs_path = os.path.abspath(args.output)

Definition at line 534 of file test_panda.py.

◆ abs_script

test_panda.abs_script = os.path.abspath(sys.argv[0])

Definition at line 473 of file test_panda.py.

◆ action

test_panda.action

Definition at line 443 of file test_panda.py.

◆ arg

test_panda.arg = arg_list[0]

Definition at line 805 of file test_panda.py.

Referenced by determine_memory_accesses.analyze_node(), black_scholes(), HWCallInjection.buildBuiltinCall(), CallGraphManager.call_graph_computation_recursive(), Parameter.CGetArgv(), tree_manager.collapse_into(), CompilerWrapper.CompileFile(), tree_helper.compute_ssa_uses_rec_ptr(), NonDeterministicFlows.ComputeArgString(), FindMaxTransformations.ComputeArgString(), tree_helper.ComputeSsaUses(), tree_manipulation.create_gimple_call(), tree_manipulation.CreateCallExpr(), tree_manager.erase_usage_info(), string_cst_fix.Exec(), BambuParameter.Exec(), TestbenchGeneration.Exec(), CreateAddressTranslation.Exec(), InterfaceInfer.Exec(), PragmaAnalysis.get_call_parameter(), tree_helper.get_required_values(), tree_helper.get_used_variables(), BehavioralHelper.GetParameterTypes(), GimpleWriter.GimpleWriter(), CSE.hash_check(), tree_manipulation.InlineFunctionCall(), tree_manager.insert_usage_info(), HDLVarDeclFix.InternalExec(), parm2ssa.InternalExec(), VarDeclFix.InternalExec(), IR_lowering.InternalExec(), soft_float_cg_ext.InternalExec(), mandelbrot(), parm2ssa.recursive_analysis(), string_cst_fix.recursive_analysis(), VarDeclFix.recursive_examinate(), CheckSystemType.recursive_examinate(), soft_float_cg_ext.RecursiveExaminate(), VarComputation.RecursivelyAnalyze(), tree_manager.RecursiveReplaceTreeNode(), soft_float_cg_ext.signature_lowering(), dead_code_eliminationIPA.signature_opt(), Vectorize.Transform(), type_pack_expansion.visit(), expr_pack_expansion.visit(), type_argument_pack.visit(), nontype_argument_pack.visit(), raw_writer.write_when_not_null_point_to(), and HLSCWriter.WriteMainTestbench().

◆ arg_lists

list test_panda.arg_lists = args.args

Definition at line 795 of file test_panda.py.

◆ arged_list

test_panda.arged_list = open(arged_list_name, "w")

Definition at line 799 of file test_panda.py.

◆ arged_list_name

test_panda.arged_list_name = os.path.join(abs_path, "arged_list")

Definition at line 798 of file test_panda.py.

◆ args

test_panda.args = parser.parse_args()

◆ benchmark_name

string test_panda.benchmark_name = ""

Definition at line 828 of file test_panda.py.

Referenced by DataXmlParser.Parse().

◆ c_files

def test_panda.c_files = SearchCFiles(first_parameter)

Definition at line 773 of file test_panda.py.

◆ children

list test_panda.children = [None] * n_jobs

Definition at line 872 of file test_panda.py.

Referenced by Loops.computeDepth().

◆ command

list test_panda.command = [tool_exe, "--version"]

◆ configuration_name

string test_panda.configuration_name = ""

Definition at line 827 of file test_panda.py.

◆ csv

test_panda.csv = os.path.abspath(args.csv)

Definition at line 655 of file test_panda.py.

◆ daemon

test_panda.daemon

Definition at line 875 of file test_panda.py.

◆ default

test_panda.default

Definition at line 446 of file test_panda.py.

◆ escape_pattern

string test_panda.escape_pattern = "(-|_|\{|\}|=|!|\$|#|&|\"|\'|\(|\)|\||<|>|`|\\\|;|\.|,)"

Definition at line 898 of file test_panda.py.

◆ exe_file

test_panda.exe_file = os.path.join(path, "bambu")

Definition at line 562 of file test_panda.py.

◆ expanded_list

test_panda.expanded_list = open(expanded_list_name, "w")

Definition at line 751 of file test_panda.py.

◆ expanded_list_name

test_panda.expanded_list_name = os.path.join(abs_path, "expanded_list")

Definition at line 750 of file test_panda.py.

◆ failed_counter

test_panda.failed_counter = failed_counter_file.read()

Definition at line 549 of file test_panda.py.

◆ failed_counter_file

test_panda.failed_counter_file = open(failed_counter_file_name)

Definition at line 548 of file test_panda.py.

◆ failed_counter_file_name

test_panda.failed_counter_file_name = os.path.join(abs_path, "failed_counter")

Definition at line 546 of file test_panda.py.

◆ failure

bool test_panda.failure = False

Definition at line 19 of file test_panda.py.

◆ False

test_panda.False

Definition at line 458 of file test_panda.py.

◆ files_list

list test_panda.files_list = []

Definition at line 684 of file test_panda.py.

◆ first_parameter

test_panda.first_parameter = os.path.join(abs_benchmarks_root, tokens[0])

Definition at line 761 of file test_panda.py.

◆ follow_param

bool test_panda.follow_param = False

Definition at line 730 of file test_panda.py.

◆ format

test_panda.format

Definition at line 470 of file test_panda.py.

Referenced by soft_float_cg_ext.soft_float_cg_ext().

◆ full_name

string test_panda.full_name = configuration_name + ":" + benchmark_name

◆ full_names

test_panda.full_names = set()

Definition at line 816 of file test_panda.py.

◆ help

test_panda.help

Definition at line 443 of file test_panda.py.

◆ INFO

test_panda.INFO

Definition at line 470 of file test_panda.py.

◆ junit_file

test_panda.junit_file = open(junit_file_name, "w")

Definition at line 900 of file test_panda.py.

◆ junit_file_name

string test_panda.junit_file_name = ""

Definition at line 514 of file test_panda.py.

◆ junit_index

int test_panda.junit_index = 0

Definition at line 516 of file test_panda.py.

◆ level

test_panda.level

Definition at line 470 of file test_panda.py.

◆ line_index

int test_panda.line_index = 0

Definition at line 18 of file test_panda.py.

◆ lines

test_panda.lines = list_file.readlines()

Definition at line 717 of file test_panda.py.

Referenced by SynthesisTool.xload_scripts().

◆ list_file

test_panda.list_file = open(abs_list)

Definition at line 716 of file test_panda.py.

◆ local_command

string test_panda.local_command = "cat " + report_file_name + " | mutt -s \"" + full_name + ": " + outcome + "\" " + args.mail

Definition at line 957 of file test_panda.py.

◆ lock

test_panda.lock = threading.RLock()

Definition at line 867 of file test_panda.py.

Referenced by port_o.xwrite(), constant_o.xwrite(), signal_o.xwrite(), and channel_o.xwrite().

◆ lock_creation_destruction

test_panda.lock_creation_destruction = threading.RLock()

Definition at line 868 of file test_panda.py.

◆ modified_argv

list test_panda.modified_argv = []

Definition at line 476 of file test_panda.py.

◆ mutt

test_panda.mutt = None

Definition at line 649 of file test_panda.py.

◆ n_jobs

test_panda.n_jobs = args.j

Definition at line 469 of file test_panda.py.

◆ named_list

test_panda.named_list = open(named_list_name, "w")

Definition at line 822 of file test_panda.py.

◆ named_list_name

test_panda.named_list_name = os.path.join(abs_path, "named_list")

Definition at line 821 of file test_panda.py.

◆ nargs

test_panda.nargs

Definition at line 443 of file test_panda.py.

◆ new_dir

def test_panda.new_dir = ComputeDirectory(line)

Definition at line 855 of file test_panda.py.

◆ other_parameters

test_panda.other_parameters = tokens[1:len(tokens)]

Definition at line 766 of file test_panda.py.

◆ outcome

string test_panda.outcome = ""

Definition at line 943 of file test_panda.py.

◆ parameters

test_panda.parameters = list()

◆ parser

test_panda.parser = argparse.ArgumentParser(description="Performs panda tests", fromfile_prefix_chars='@')

◆ passed_benchmark

int test_panda.passed_benchmark = 0

Definition at line 869 of file test_panda.py.

◆ perfpublisher_file

test_panda.perfpublisher_file = open(perfpublisher_file_name, "w")

Definition at line 908 of file test_panda.py.

◆ perfpublisher_file_name

string test_panda.perfpublisher_file_name = ""

Definition at line 523 of file test_panda.py.

◆ perfpublisher_index

int test_panda.perfpublisher_index = 0

Definition at line 525 of file test_panda.py.

◆ perfpublisher_name

string test_panda.perfpublisher_name = ""

Definition at line 522 of file test_panda.py.

◆ positive_integer

def test_panda.positive_integer

Definition at line 447 of file test_panda.py.

Referenced by positive_integer().

◆ reordered_list

test_panda.reordered_list = open(reordered_list_name, "w")

Definition at line 711 of file test_panda.py.

◆ reordered_list_name

test_panda.reordered_list_name = os.path.join(abs_path, "reordered_list")

Definition at line 710 of file test_panda.py.

◆ report_file

test_panda.report_file = open(report_file_name)

Definition at line 917 of file test_panda.py.

◆ report_file_name

test_panda.report_file_name = os.path.join(abs_path, "report")

Definition at line 916 of file test_panda.py.

◆ restart

test_panda.restart

◆ shell

test_panda.shell

Definition at line 958 of file test_panda.py.

Referenced by processPhoton().

◆ spider

string test_panda.spider = ""

Definition at line 616 of file test_panda.py.

◆ stderr

test_panda.stderr

◆ stdout

test_panda.stdout

Definition at line 922 of file test_panda.py.

Referenced by CopyStdout(), and polybench_flush_cache().

◆ table

test_panda.table = os.path.abspath(args.table)

◆ temp_list

test_panda.temp_list = open(os.path.join(abs_path, "temp_list"), "w")

Definition at line 703 of file test_panda.py.

◆ threads

list test_panda.threads = []

Definition at line 871 of file test_panda.py.

Referenced by main().

◆ tokens

test_panda.tokens = shlex.split(line)

◆ tool_exe

string test_panda.tool_exe = ""

Definition at line 555 of file test_panda.py.

◆ total_benchmark

int test_panda.total_benchmark = 0

Definition at line 870 of file test_panda.py.

◆ type

test_panda.type

Definition at line 447 of file test_panda.py.

Referenced by tree_helper.AccessedMaximumBitsize(), tree_helper.AccessedMinimunBitsize(), BasicBlocksGraphConstructor.add_bb_edge_info(), tree_manager.add_identifier_node(), CdfgEdgeInfo.add_nodeID(), NP_functionality.add_NP_functionality(), graphs_collection.AddVertex(), CBackend.AnalyzeInclude(), APInt.APInt(), IR_lowering.array_ref_lowering(), CallGraphBuiltinCall.buildTypeToDeclaration(), graph.CGetEdge(), tree_helper.CGetElements(), tree_helper.CGetFieldTypes(), tree_manager.check_for_decl(), tree_manager.check_for_type(), check_value_opt(), StateTransitionGraph_constructor.connect_state(), BitLatticeManipulator.constructor_bitstring(), constructor_range(), CopyFile(), mux_connection_binding.create_connections(), BackendFlow.CreateFlow(), tree_manipulation.CreateGimpleAssignAddrExpr(), tree_manager.CreateUniqueRealCst(), mux_connection_binding.determine_connection(), IR_lowering.division_by_a_constant(), ends_with(), HDLFunctionDeclFix.Exec(), IR_lowering.expand_target_mem_ref(), CallGraphBuiltinCall.ExtendCallGraph(), memory_allocation.finalize_memory_allocation(), tree_helper.find_obj_type_ref_function(), Vectorize.FixPhis(), tree_helper.get_integer_cst_value(), tree_helper.get_type_name(), tree_helper.GetArrayElementSize(), getBuiltinFieldTypes(), AllocationInformation.GetCondExprTimeLatency(), tree_helper.GetFieldIdx(), AllocationInformation.GetNodeTypePrec(), tree_helper.GetRecordTypeName(), ugraph.GetSelector(), tree_helper.GetTemplateTypeName(), tree_helper.GetTypeName(), tree_helper.GetUnqualifiedType(), tree_helper.HasToBeDeclared(), SerializeMutualExclusions.InternalExec(), IR_lowering.InternalExec(), allocation.InternalExec(), is_large_integer(), BehavioralHelper.is_named_pointer(), BehavioralHelper.is_var_args(), tree_helper.IsAligned(), tree_helper.IsArrayEquivType(), tree_helper.IsArrayType(), BitLatticeManipulator.IsHandledByBitvalue(), tree_helper.IsInLibbambu(), tree_helper.IsPackedType(), tree_helper.IsPositiveIntegerValue(), tree_helper.IsSystemType(), NumberToString(), mux_connection_binding.object_bitsize(), APInt.operator T(), operator"" _apint(), std_var_pp_functor.operator()(), isolated_var_pp_functor.operator()(), FunctionExpander.operator()(), TestbenchGeneration.print_var_init(), BehavioralHelper.PrintConstant(), UnaryOpNode.printDot(), BehavioralHelper.PrintNode(), tree_helper.PrintType(), tree_helper.RecursiveGetTypesToBeDeclared(), RawGraph.RemoveVertex(), graphs_collection.RemoveVertex(), undirected_graphs_collection.RemoveVertex(), library_manager.set_info(), BitLatticeManipulator.Size(), fu_binding.specialise_fu(), Vectorize.Transform(), vcd_parser.vcd_parse_def_var(), cst_node.visit(), baselink.visit(), binfo.visit(), constructor.visit(), HDL_manager.write_components(), VHDL_writer.write_module_parametrization(), verilog_writer.write_module_parametrization(), VHDL_writer.write_module_parametrization_decl(), verilog_writer.write_module_parametrization_decl(), CWriter.WriteBuiltinWaitCall(), CBackend.writeIncludes(), HLSCWriter.WriteParamDecl(), BackendFlow.xload(), and operation.xload().


Generated on Mon Feb 12 2024 13:04:12 for PandA-2024.02 by doxygen 1.8.13