Calling systemtap function from pure code

Daniel Doron danielmeirdoron@gmail.com
Wed Sep 13 14:41:00 GMT 2017


Hi,

Is it possible to call a stap function from kernel code (guru mode)?

The error I get is:
 error: implicit declaration of function ‘log_evnt_stap’
[-Werror=implicit-function-declaration]

e.g.:
=============================
function log_evnt_stap(name){
    printf("name %s \n", name )
}

probe begin(0) {
  call_me();
}

%{

int log_event(char * str)
{
     log_evnt_stap(str);
     return 0;
}

%}

function call_me() %{
     log_event("hello world");
%}
================================



More information about the Systemtap mailing list