Commit-ID: 2b8777ca0c944bf6498c45ed9c5c246bd63a719e Gitweb: http://git.kernel.org/tip/2b8777ca0c944bf6498c45ed9c5c246bd63a719e Author: Maynard Johnson <maynardj@xxxxxxxxxx> AuthorDate: Wed, 27 May 2009 10:15:08 -0500 Committer: Ingo Molnar <mingo@xxxxxxx> CommitDate: Fri, 10 Jul 2009 12:35:36 +0200 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 <maynardj@xxxxxxxxxx> Signed-off-by: Robert Richter <robert.richter@xxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- drivers/oprofile/oprofile_stats.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/oprofile/oprofile_stats.c b/drivers/oprofile/oprofile_stats.c index e1f6ce0..3c2270a 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); } -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |