trace: extract stap_escape() function for reuse
commita76ccf3c1cb06576af091c5ac8bc264515b1bb7f
authorStefan Hajnoczi <stefanha@redhat.com>
Sun, 22 Jun 2014 13:46:04 +0000 (22 21:46 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 12 Aug 2014 13:26:11 +0000 (12 14:26 +0100)
tree1abca48701be45aa32e8e13e4ef9b1637b8800af
parent2d591ce2aeebf9620ff527c7946844a3122afeec
trace: extract stap_escape() function for reuse

SystemTap reserved words sometimes conflict with QEMU variable names.
We escape them to prevent conflicts.

Move escaping into its own function so the next patch can reuse it.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/tracetool/format/stap.py