blob: 5dc0100fee310116486fc73463f9c2f83c9f1ca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
From e819252f148375509fec4668c76eac75ec68cfb0 Mon Sep 17 00:00:00 2001
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Tue, 15 Feb 2011 13:16:05 -0500
Subject: [PATCH] Fix compile failures due to missing perf header
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The upstream header cleanup that took place between the rev
list ^9e74e7c b66696e breaks on RT with:
CC lib/kernel_lock.o
In file included from /home/paul/tip-debare/include/linux/slab.h:171,
include/linux/slab_def.h: In function ‘kmalloc’:
include/linux/slab_def.h:157: error: implicit declaration of function ‘trace_kmalloc’
include/trace/events/kmem.h: In function ‘perf_trace_enable_kmalloc’:
include/trace/events/kmem.h:81: error: implicit declaration of function ‘register_trace_kmalloc’
and similar for kernel/trace/power-traces.c -- the fix is
the same for both.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
kernel/trace/power-traces.c | 1 +
lib/kernel_lock.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/trace/power-traces.c b/kernel/trace/power-traces.c
index a22582a..1f2d92a 100644
--- a/kernel/trace/power-traces.c
+++ b/kernel/trace/power-traces.c
@@ -9,6 +9,7 @@
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/module.h>
+#include <linux/perf_event.h>
#define CREATE_TRACE_POINTS
#include <trace/events/power.h>
diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c
index bc62ed8..6f64987 100644
--- a/lib/kernel_lock.c
+++ b/lib/kernel_lock.c
@@ -9,6 +9,7 @@
#include <linux/kallsyms.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
+#include <linux/perf_event.h>
#define CREATE_TRACE_POINTS
#include <trace/events/bkl.h>
--
1.7.0.4
|