Commit 8eac5492 authored by John Levon's avatar John Levon Committed by Linus Torvalds

[PATCH] OProfile update

Change the lost_mmap_sem stat to lost_no_mm, and account it.
parent 6afeba7f
......@@ -298,6 +298,8 @@ static void add_sample(struct mm_struct * mm, struct op_sample * s, int in_kerne
add_sample_entry(s->eip, s->event);
} else if (mm) {
add_us_sample(mm, s);
} else {
atomic_inc(&oprofile_stats.sample_lost_no_mm);
}
}
......
......@@ -31,7 +31,7 @@ void oprofile_reset_stats(void)
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 @@ void oprofile_create_stats_files(struct super_block * sb, struct dentry * root)
&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);
}
......@@ -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;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment