]> sourceware.org Git - systemtap.git/commit
PR9968: Share global variable between embedded C and script
authorFelix Lu <flu@redhat.com>
Wed, 6 Jan 2016 15:41:35 +0000 (10:41 -0500)
committerFelix Lu <flu@redhat.com>
Wed, 6 Jan 2016 21:53:15 +0000 (16:53 -0500)
commit0af18f5aa4c71440ab25d6ae1adda9f84774405b
tree25b8451d6a62cba445a2da0a9ee109300c2804dd
parent3af44290dbd62df2bede7e7eadf0d652f769ad2a
PR9968: Share global variable between embedded C and script

Embedded-C functions and blocks can now use the
STAP_GLOBAL_{GET,SET}_* macros to access script level global variables.

* NEWS: description
* doc/langref.text: description + added section for stable and
  unmodified-fnargs pragmas which was only in man/stap.1
* staptree.cxx: scan for pragmas in varuse_collecting_visitor
  visit_embeddedcode and visit_embedded_expr to allow proper locks
  to be emitted
* translate.cxx: c_unparser visit_embeddedcode and visit_embedded_expr
  generates the needed macros
NEWS
doc/langref.tex
elaborate.cxx
man/stap.1
staptree.cxx
staptree.h
testsuite/buildko/global_access.stp [new file with mode: 0755]
testsuite/semko/global_access.stp [new file with mode: 0755]
testsuite/systemtap.base/global_access.exp [new file with mode: 0644]
translate.cxx
This page took 0.03336 seconds and 5 git commands to generate.