]> Pileus Git - ~andy/linux/commitdiff
oprofile: reset bt_lost_no_mapping with other stats
authorMaynard Johnson <maynardj@us.ibm.com>
Wed, 27 May 2009 15:15:08 +0000 (10:15 -0500)
committerRobert Richter <robert.richter@amd.com>
Fri, 12 Jun 2009 15:25:43 +0000 (17:25 +0200)
The bt_lost_no_mapping is not getting reset at the start of a
profiling run, thus the oprofiled.log shows erroneous values for this
statistic. The attached patch fixes this problem.

Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprofile_stats.c

index e1f6ce03705ed915d94b77f1dde0a687e07e08f8..efefae539a5918c2109c910f73457f306ffa2e95 100644 (file)
@@ -33,6 +33,7 @@ void oprofile_reset_stats(void)
        atomic_set(&oprofile_stats.sample_lost_no_mm, 0);
        atomic_set(&oprofile_stats.sample_lost_no_mapping, 0);
        atomic_set(&oprofile_stats.event_lost_overflow, 0);
+       atomic_set(&oprofile_stats.bt_lost_no_mapping,0);
 }