Get Call Paths

Get a path in the call graph from a source function to a specified destination function in the codebase. It's very useful when you want to find call paths to a function. Use when this capability is needed.

tomevault-io 7cfcd98 2 files · 1.9 KB Updated

File contents

Get Call Paths Tool

Get a path in the call graph from a source function to a specified destination function in the codebase.

Usage

python3 /bash_tools/static_analysis/get-call-paths-to-function/scripts/get_call_paths_to_function.py "DST_FUNCTION" \
  --dst-file "path/to/dst_file" \
  --src-function "SRC_FUNCTION" \
  --src-file "path/to/src_file"

Parameters

  • dst_function_name (positional): Destination function name.
  • --dst-file: File path where the destination function is defined (optional).
  • --src-function: Source function name (optional; default LLVMFuzzerTestOneInput).
  • --src-file: File path where the source function is defined (optional).

Return Value

Returns JSON text with a top-level key result containing call path info.

Requires Sandbox

neo4j, codeql, joern


Source: opensage-agent/opensage-adk — distributed by TomeVault.

tomevault-io/skills-registry/tree/main/opensage-agent--opensage-adk--opensage-adk commit 7cfcd9890c

Frequently asked questions

npx skillmds@latest add tomevault-io/get-call-paths