GraphBuilder
¤
GraphBuilder
¤
GraphBuilder()
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
add_link
¤
add_link(graph, dico, call)
Add links between calls in the graph based on call arguments and return value.
Parameters:
-
graph
–Graph representation.
-
dico
–Dictionary used to build links between args.
-
call
–Call information containing args and return value.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
|
build
¤
build(stashes_content, mapping, odir, family)
Build the system call dependency graph using the list representing the syscalls and the mapping.
Parameters:
-
stashes_content
–Content of the stashes.
-
mapping
–Name of the file for the mapping to use.
-
odir
–Output directory for the graph.
-
family
–Family of the graph.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
|
clear
¤
clear()
Reset all lists and dictionaries of the object.
Metrics about traces which add information in the graph (or not) are reset to zero.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
reset_attributes
¤
reset_attributes()
Reset attributes used in the graph building process.
Clears various attributes to prepare for building a new graph.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
313 314 315 316 317 318 319 320 321 322 323 324 325 |
|
save_result
¤
save_result(graph_output, json_content)
Save the result of the graph building process.
Parameters:
-
graph_output
–Output format for the graph.
-
json_content
–JSON content to be saved.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
|
scdg_with_disjoint_union
¤
scdg_with_disjoint_union(SCDG, graph_output, json_content)
Build the system call dependency graph with disjoint union.
Parameters:
-
SCDG
–List representing syscalls.
-
graph_output
–Output format for the graph.
-
json_content
–Dictionary to store JSON content.
Returns:
-
–
None
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 |
|
scdg_with_merge_calls
¤
scdg_with_merge_calls(SCDG, graph_output, gv, json_content)
Build the system call dependency graph with merge calls.
Parameters:
-
SCDG
–List representing syscalls.
-
graph_output
–Output format for the graph.
-
gv
–Boolean to determine if the function should also provide the gv graph.
-
json_content
–Dictionary to store JSON content.
Source code in sema_toolchain/sema_scdg/application/helper/GraphBuilder.py
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
|