From: Lin Ming on
module tracepoint events are exported like below,

/sys/module/events/
|-- module_free
| |-- config
| `-- type
|-- module_get
| |-- config
| `-- type
|-- module_load
| |-- config
| `-- type
|-- module_put
| |-- config
| `-- type
`-- module_request
|-- config
`-- type
---
kernel/params.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/params.c b/kernel/params.c
index 0b30ecd..be3326c 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -24,6 +24,7 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>
+#include <linux/perf_event.h>

#if 0
#define DEBUGP printk
@@ -763,6 +764,8 @@ static int __init param_sysfs_init(void)

param_sysfs_builtin();

+ perf_sys_add_tp(&module_kset->kobj, "module");
+
return 0;
}
subsys_initcall(param_sysfs_init);



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/