lkml.org 
[lkml]   [2003]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 7/8] OProfile update
From
Date

Change the lost_mmap_sem stat to lost_no_mm, and account it.

diff -Naur -X dontdiff linux-cvs/drivers/oprofile/buffer_sync.c linux-me/drivers/oprofile/buffer_sync.c
--- linux-cvs/drivers/oprofile/buffer_sync.c 2003-04-05 18:44:49.000000000 +0100
+++ linux-me/drivers/oprofile/buffer_sync.c 2003-05-03 20:10:44.000000000 +0100
@@ -296,6 +321,8 @@
add_sample_entry(s->eip, s->event);
} else if (mm) {
add_us_sample(mm, s);
+ } else {
+ atomic_inc(&oprofile_stats.sample_lost_no_mm);
}
}

diff -Naur -X dontdiff linux-cvs/drivers/oprofile/oprofile_stats.c linux-me/drivers/oprofile/oprofile_stats.c
--- linux-cvs/drivers/oprofile/oprofile_stats.c 2003-03-07 15:39:16.000000000 +0000
+++ linux-me/drivers/oprofile/oprofile_stats.c 2003-05-01 14:40:18.000000000 +0100
@@ -31,7 +31,7 @@
cpu_buf->sample_lost_task_exit = 0;
}

- atomic_set(&oprofile_stats.sample_lost_mmap_sem, 0);
+ atomic_set(&oprofile_stats.sample_lost_no_mm, 0);
atomic_set(&oprofile_stats.event_lost_overflow, 0);
}

@@ -68,8 +68,8 @@
&cpu_buf->sample_lost_task_exit);
}

- oprofilefs_create_ro_atomic(sb, dir, "sample_lost_mmap_sem",
- &oprofile_stats.sample_lost_mmap_sem);
+ oprofilefs_create_ro_atomic(sb, dir, "sample_lost_no_mm",
+ &oprofile_stats.sample_lost_no_mm);
oprofilefs_create_ro_atomic(sb, dir, "event_lost_overflow",
&oprofile_stats.event_lost_overflow);
}
diff -Naur -X dontdiff linux-cvs/drivers/oprofile/oprofile_stats.h linux-me/drivers/oprofile/oprofile_stats.h
--- linux-cvs/drivers/oprofile/oprofile_stats.h 2002-10-16 03:26:30.000000000 +0100
+++ linux-me/drivers/oprofile/oprofile_stats.h 2003-05-01 14:36:12.000000000 +0100
@@ -13,7 +13,7 @@
#include <asm/atomic.h>

struct oprofile_stat_struct {
- atomic_t sample_lost_mmap_sem;
+ atomic_t sample_lost_no_mm;
atomic_t event_lost_overflow;
};

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [from the cache]
©2003-2011 Jasper Spaans