From: Maynard Johnson Date: Wed, 27 May 2009 15:15:08 +0000 (-0500) Subject: oprofile: reset bt_lost_no_mapping with other stats X-Git-Tag: v2.6.32-rc1~721^2~29^3^2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1cc4ce6f5f89cdc355013aa43f06a14a015766d1;p=karo-tx-linux.git oprofile: reset bt_lost_no_mapping with other stats 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 Signed-off-by: Robert Richter --- diff --git a/drivers/oprofile/oprofile_stats.c b/drivers/oprofile/oprofile_stats.c index e1f6ce03705e..efefae539a59 100644 --- a/drivers/oprofile/oprofile_stats.c +++ b/drivers/oprofile/oprofile_stats.c @@ -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); }