Bug 13293 - Experimental idea: translation from Python to SystemTap
Summary: Experimental idea: translation from Python to SystemTap
Status: RESOLVED WONTFIX
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 17:43 UTC by Dave Malcolm
Modified: 2017-05-08 20:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Very early and primitive .py -> .stp converter (1.52 KB, text/plain)
2011-10-13 17:44 UTC, Dave Malcolm
Details
The input .py file I've been using (71 bytes, text/plain)
2011-10-13 17:46 UTC, Dave Malcolm
Details

Note You need to log in before you can comment on or make changes to this bug.
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)