Calling systemtap function from pure code
Frank Ch. Eigler
fche@redhat.com
Fri Sep 15 02:22:00 GMT 2017
Daniel Doron <danielmeirdoron@gmail.com> writes:
> Is it possible to call a stap function from [embedded-c code]?
> function log_evnt_stap(name){
> printf("name %s \n", name )
> }
> [something like ... function foo () %{ log_event_stap("foo") %}
Nope. For example, the code that systemtap functions are translated to
have a rather different API/ABI at the C level, e.g., involving putting
parameters into an explicit stack structure (context*). You can
probably hack together something that would work for your script, based
on an examination of stap -p3 output, but is not a well-supported
technique.
- FChE
More information about the Systemtap
mailing list