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]

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


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.


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