mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 00:42:05 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
14 lines
369 B
Python
Executable File
14 lines
369 B
Python
Executable File
#!/usr/bin/env python3
|
|
# extract asts from process replay artifacts
|
|
import os
|
|
from test.external.process_replay.process_replay import _pmap
|
|
|
|
LOGOPS = os.getenv("LOGOPS", "/tmp/sops")
|
|
|
|
def extract_ast(*args) -> None:
|
|
open(LOGOPS, "a").write(str(args[0]).replace("\n", "").replace(" ", "")+"\n")
|
|
return None
|
|
|
|
if __name__ == "__main__":
|
|
_pmap("kernel", extract_ast)
|