INNER CODE UNIT · Python

read_linux_exports

uxlfoundation/oneDAL · dev/release_tests/compare_release_trees.py:611

def read_linux_exports(path):
    nm = shutil.which("nm")
    if nm:
        output = run_tool([nm, "-D", "--defined-only", str(path)])
        symbols = set()
        for line in output.splitlines():
            parts = line.split()
            if len(parts) >= 3:
                symbol = parts[-1].split("@", 1)[0]
                if not is_ignored_linux_export(symbol, path):
                    symbols.add(symbol)
        return symbols

    readelf = shutil.which("readelf")
    if readelf:
        output = run_tool([readelf, "-Ws", str(path)])
        symbols = set()
        for line in output.splitlines():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…