Debugging Linux Kernel using SystemTap Part5 - Writing Probes for Module Functions

In the previous posts, we wrote probes for the kernel functions, what if your probe functions are inside a loadable module.

Syntax for probing a function inside module:

probe module("module_name").function("function_name")
{
.....
}

Example of probing all the get functions inside e1000 module:

probe module("e1000").function("e1000_get*") {
    printf("%s\n", ppfunc())
}

probe module("e1000").function("e1000_get*").return {
    printf("%s \n", ppfunc())
}



Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto