This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/17073] New: SystemTap doesn't support module given by full path
- From: "jlebon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 19 Jun 2014 15:23:10 +0000
- Subject: [Bug translator/17073] New: SystemTap doesn't support module given by full path
- Auto-submitted: auto-generated
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.