Bug 13293

Summary: Experimental idea: translation from Python to SystemTap
Product: systemtap Reporter: Dave Malcolm <dmalcolm>
Component: translatorAssignee: Unassigned <systemtap>
Status: RESOLVED WONTFIX    
Severity: normal CC: fche
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: Very early and primitive .py -> .stp converter
The input .py file I've been using

Description Dave Malcolm 2011-10-13 17:43:56 UTC
I had a go at writing a Python to .stp compiler

Motivation:
gdb can be scripted in Python, and I have a substantial body of Python code that uses gdb's Python interface to poke at backtraces and values in inferior processes.  It seems worth sharing that code somehow with SystemTap.

I'm attaching the minimal "compiler" I wrote (though it's far too premature for that :)  )
Comment 1 Dave Malcolm 2011-10-13 17:44:57 UTC
Created attachment 5985 [details]
Very early and primitive .py -> .stp converter
Comment 2 Dave Malcolm 2011-10-13 17:46:33 UTC
Created attachment 5986 [details]
The input .py file I've been using

$ sudo py2stp.py test.py 
works, generating a minimal test.stp, which prints "hello world" as it starts
Comment 3 Frank Ch. Eigler 2017-05-08 20:30:02 UTC
(progress on this clever idea is unlikely)