* [RFC][PATCH v1 12/15] perf: export tracepoint events via sysfs: kmem
@ 2010-07-22 11:17 Lin Ming
0 siblings, 0 replies; only message in thread
From: Lin Ming @ 2010-07-22 11:17 UTC (permalink / raw)
To: Ingo Molnar, Christoph Lameter
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
kmem tracepoint events are exported like below,
/sys/kernel/slab/events/
|-- kfree
| |-- config
| `-- type
|-- kmalloc
| |-- config
| `-- type
|-- kmalloc_node
| |-- config
| `-- type
|-- kmem_cache_alloc
| |-- config
| `-- type
|-- kmem_cache_alloc_node
| |-- config
| `-- type
|-- kmem_cache_free
| |-- config
| `-- type
|-- mm_page_alloc
| |-- config
| `-- type
|-- mm_page_alloc_extfrag
| |-- config
| `-- type
|-- mm_page_alloc_zone_locked
| |-- config
| `-- type
|-- mm_page_free_direct
| |-- config
| `-- type
|-- mm_page_pcpu_drain
| |-- config
| `-- type
`-- mm_pagevec_free
|-- config
`-- type
---
mm/slub.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mm/slub.c b/mm/slub.c
index 7bb7940..0de39dd 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -27,6 +27,7 @@
#include <linux/memory.h>
#include <linux/math64.h>
#include <linux/fault-inject.h>
+#include <linux/perf_event.h>
/*
* Lock order:
@@ -4554,6 +4555,8 @@ static int __init slab_sysfs_init(void)
return -ENOSYS;
}
+ perf_sys_add_tp(&slab_kset->kobj, "kmem");
+
slab_state = SYSFS;
list_for_each_entry(s, &slab_caches, list) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-22 11:17 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:17 [RFC][PATCH v1 12/15] perf: export tracepoint events via sysfs: kmem 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).