lkml.org 
[lkml]   [2009]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] kmemtrace: Remove the relay version of kmemtrace.

* Ingo Molnar <mingo@elte.hu> wrote:

>
> * Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> wrote:
>
> > kmemtrace now uses ftrace. This patch removes the relay version.
> >
> > Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
> > ---
> > kernel/trace/Kconfig | 1 -
> > mm/Makefile | 1 -
> > mm/kmemtrace.c | 333 --------------------------------------------------
> > 3 files changed, 0 insertions(+), 335 deletions(-)
> > delete mode 100644 mm/kmemtrace.c
>
> applied to tip/tracing/kmemtrace2, thanks Eduard!

I needed the small fixlet below as well.

Ingo

-------------->
From 3e80680208ba6ce9635ca7c21ad0019442ea166a Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Tue, 6 Jan 2009 10:16:35 +0100
Subject: [PATCH] kmemtrace: add kmemtrace_init()
Impact: build fix

leftover from the relayfs version - but we want to keep it because
this call is the earliest opportunity when we can start kmemtrace
tracing. (after kmem_cache_init()).

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
kernel/trace/kmemtrace.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c
index 2bfdcd3..faaa5ae 100644
--- a/kernel/trace/kmemtrace.c
+++ b/kernel/trace/kmemtrace.c
@@ -337,6 +337,11 @@ static struct tracer kmem_tracer __read_mostly = {
.flags = &kmem_tracer_flags
};

+void kmemtrace_init(void)
+{
+ /* earliest opportunity to start kmem tracing */
+}
+
static int __init init_kmem_tracer(void)
{
return register_tracer(&kmem_tracer);

\
 
 \ /
  Last update: 2009-01-06 10:23    [from the cache]
©2003-2011 Jasper Spaans