]> git.pld-linux.org Git - packages/kernel.git/blame - 2.6.0-t3-oprofile-3of3-lkml.patch
- obsolete
[packages/kernel.git] / 2.6.0-t3-oprofile-3of3-lkml.patch
CommitLineData
f1665087 1diff -X dontdiff -Naur linux-cvs/drivers/oprofile/buffer_sync.c linux-fixes/drivers/oprofile/buffer_sync.c
2--- linux-cvs/drivers/oprofile/buffer_sync.c 2003-06-18 15:06:09.000000000 +0100
3+++ linux-fixes/drivers/oprofile/buffer_sync.c 2003-08-19 01:15:36.000000000 +0100
4@@ -308,8 +308,10 @@
5
6 cookie = lookup_dcookie(mm, s->eip, &offset);
7
8- if (!cookie)
9+ if (!cookie) {
10+ atomic_inc(&oprofile_stats.sample_lost_no_mapping);
11 return;
12+ }
13
14 if (cookie != last_cookie) {
15 add_cookie_switch(cookie);
16diff -X dontdiff -Naur linux-cvs/drivers/oprofile/oprofile_stats.c linux-fixes/drivers/oprofile/oprofile_stats.c
17--- linux-cvs/drivers/oprofile/oprofile_stats.c 2003-05-04 02:42:47.000000000 +0100
18+++ linux-fixes/drivers/oprofile/oprofile_stats.c 2003-08-19 01:17:17.000000000 +0100
19@@ -32,6 +32,7 @@
20 }
21
22 atomic_set(&oprofile_stats.sample_lost_no_mm, 0);
23+ atomic_set(&oprofile_stats.sample_lost_no_mapping, 0);
24 atomic_set(&oprofile_stats.event_lost_overflow, 0);
25 }
26
27@@ -70,6 +71,8 @@
28
29 oprofilefs_create_ro_atomic(sb, dir, "sample_lost_no_mm",
30 &oprofile_stats.sample_lost_no_mm);
31+ oprofilefs_create_ro_atomic(sb, dir, "sample_lost_no_mapping",
32+ &oprofile_stats.sample_lost_no_mapping);
33 oprofilefs_create_ro_atomic(sb, dir, "event_lost_overflow",
34 &oprofile_stats.event_lost_overflow);
35 }
36diff -X dontdiff -Naur linux-cvs/drivers/oprofile/oprofile_stats.h linux-fixes/drivers/oprofile/oprofile_stats.h
37--- linux-cvs/drivers/oprofile/oprofile_stats.h 2003-05-04 02:42:47.000000000 +0100
38+++ linux-fixes/drivers/oprofile/oprofile_stats.h 2003-08-19 01:16:23.000000000 +0100
39@@ -14,6 +14,7 @@
40
41 struct oprofile_stat_struct {
42 atomic_t sample_lost_no_mm;
43+ atomic_t sample_lost_no_mapping;
44 atomic_t event_lost_overflow;
45 };
46
47
This page took 0.084314 seconds and 4 git commands to generate.