summaryrefslogtreecommitdiff
path: root/drivers/oprofile/buffer_sync.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2003-08-23 23:39:08 +1000
committerAnton Blanchard <anton@samba.org>2003-08-23 23:39:08 +1000
commitafb753ea258c299f0f4615917bd6f7d65fcaeca5 (patch)
treeb29d6cac75d5093374085a50dde41818e744d034 /drivers/oprofile/buffer_sync.c
parent4665cdeef2451654762157c7c1c405fc4aae011b (diff)
parentad556f8fd773a60cb5a2c08d42f3a68b61c5b982 (diff)
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/tmp3
Diffstat (limited to 'drivers/oprofile/buffer_sync.c')
-rw-r--r--drivers/oprofile/buffer_sync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index ad105b881410..2dac57b618a3 100644
--- a/drivers/oprofile/buffer_sync.c
+++ b/drivers/oprofile/buffer_sync.c
@@ -308,8 +308,10 @@ static void add_us_sample(struct mm_struct * mm, struct op_sample * s)
cookie = lookup_dcookie(mm, s->eip, &offset);
- if (!cookie)
+ if (!cookie) {
+ atomic_inc(&oprofile_stats.sample_lost_no_mapping);
return;
+ }
if (cookie != last_cookie) {
add_cookie_switch(cookie);