* [RFC][PATCH v1 10/15] perf: export tracepoint events via sysfs: module
@ 2010-07-22 11:16 Lin Ming
0 siblings, 0 replies; only message in thread
From: Lin Ming @ 2010-07-22 11:16 UTC (permalink / raw)
To: Ingo Molnar
Cc: Robert Richter, Corey Ashford, Johannes Berg, Peter Zijlstra,
Greg KH, Frederic Weisbecker, Paul Mundt, eranian@gmail.com,
Gary.Mohr@Bull.com, arjan@linux.intel.com, Zhang, Yanmin,
Paul Mackerras, David S. Miller, Russell King,
Arnaldo Carvalho de Melo, Will Deacon, Maynard Johnson, Carl Love,
Kay Sievers, lkml, Thomas Gleixner, Steven Rostedt
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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-22 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 11:16 [RFC][PATCH v1 10/15] perf: export tracepoint events via sysfs: module Lin Ming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).