How to inject sleep

Nayan Gadre beejoy.nayan@gmail.com
Wed Apr 18 06:46:00 GMT 2018


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



More information about the Systemtap mailing list