]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.0-t3-oprofile-3of3-lkml.patch
- [2.4.2x, 2.6.x] don't recursively crash in die() on CHRP/PReP machines
[packages/kernel.git] / 2.6.0-t3-oprofile-3of3-lkml.patch
1 diff -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);
16 diff -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  }
36 diff -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.034395 seconds and 3 git commands to generate.