This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to inject sleep


Hi,

Is there a method to inject sleep into kernel function:

eg:
probe module("llt").function("llt_send_data"){
         print("LLT_SEND_DATA\n");
         printf("Arguments: [Port: %u, Nid: %u, FragCount: %u,
Frag_size: %u]\n", $port, $nid, $fcnt, $frags[0]->f_size);
         #printf("local variables %s and arguments %s\n", $$locals, $$vars)
         print_backtrace()
         print("-------------------------------\n")
 }

So would like to inject msleep(10) after entering into this module
function llt_send_data.

Is it possible, Please suggest.

Thanks
Nayan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]