This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
How to inject sleep
- From: Nayan Gadre <beejoy dot nayan at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Wed, 18 Apr 2018 12:16:17 +0530
- Subject: 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