[Bug translator/17073] New: SystemTap doesn't support module given by full path

jlebon at redhat dot com sourceware-bugzilla@sourceware.org
Thu Jun 19 15:23:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=17073

            Bug ID: 17073
           Summary: SystemTap doesn't support module given by full path
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jlebon at redhat dot com

Trying to probe a module by providing the full path to it in the 'module' probe
component does not work:

$ cat mymodule.c
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>

static int __init mymodule_init(void)
{
    printk(KERN_INFO "Hello world!\n");
    return 0;
}

static void __exit mymodule_cleanup(void)
{
    printk(KERN_INFO "Cleaning up module.\n");
}

module_init(mymodule_init);
module_exit(mymodule_cleanup);
$ make
$ stap -e 'probe
module("/home/vm/codebase/systemtap/systemtap/tmp/mymodule.ko").function("mymodule_init")
{ println(ppfunc()) }' -c 'sudo insmod mymodule.ko && sudo rmmod mymodule.ko'
$

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Systemtap mailing list