forked from eBPFDevSecTools/opened
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun2_all.py
More file actions
17 lines (15 loc) · 723 Bytes
/
run2_all.py
File metadata and controls
17 lines (15 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import json
fname_arr = ["op/cilium/cilium.function_file_list.json", "op/katran/katran.function_file_list.json", "op/bcc/bcc.function_file_list.json"]
for fname in fname_arr:
func_dict = []
with open(fname) as txl_struct_file:
func_dict= json.load(txl_struct_file)
for func_name in func_dict.keys():
func_details = func_dict[func_name]
func_name.replace('*','')
for entries in func_details:
if(entries["fileName"].endswith(".c")):
cmd_str = "python3 src/extraction_runner.py -f "+func_name+" -d cilium.db -g op/fcg -r cilium"
print(cmd_str)
else:
print("#Skipping: "+func_name+" in "+entries["fileName"])