[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1279797455.20942.95.camel@minggr.sh.intel.com>
Date: Thu, 22 Jul 2010 19:17:35 +0800
From: Lin Ming <ming.m.lin@...el.com>
To: Ingo Molnar <mingo@...e.hu>,
Christoph Lameter <cl@...ux-foundation.org>
Cc: Robert Richter <robert.richter@....com>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
Johannes Berg <johannes@...solutions.net>,
Peter Zijlstra <peterz@...radead.org>,
Greg KH <greg@...ah.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Paul Mundt <lethal@...ux-sh.org>,
"eranian@...il.com" <eranian@...il.com>,
"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
Paul Mackerras <paulus@...ba.org>,
"David S. Miller" <davem@...emloft.net>,
Russell King <rmk+kernel@....linux.org.uk>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Will Deacon <will.deacon@....com>,
Maynard Johnson <mpjohn@...ibm.com>,
Carl Love <carll@...ibm.com>,
Kay Sievers <kay.sievers@...y.org>,
lkml <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [RFC][PATCH v1 12/15] perf: export tracepoint events via sysfs:
kmem
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) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists