summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-13 20:21:14 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-13 20:21:14 +0100
commitb47af4d4d069c12fd79e588615fa0df04bbccff7 (patch)
tree66ada25aa4921b7385d83a71c1c2128fdc21a8cd
parentbeda83efaa45fb04f142034f61eb1ae9fe872c59 (diff)
Fix task stats incrementations
* vm/vm_fault.c (vm_fault_page): Properly increment current_task()->zero_fills and cow_faults.
-rw-r--r--vm/vm_fault.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index fe5b488..7e84961 100644
--- a/vm/vm_fault.c
+++ b/vm/vm_fault.c
@@ -472,7 +472,7 @@ vm_fault_return_t vm_fault_page(first_object, first_offset,
vm_stat_sample(SAMPLED_PC_VM_ZFILL_FAULTS);
vm_stat.zero_fill_count++;
- current_task()->zero_fills;
+ current_task()->zero_fills++;
vm_object_lock(object);
pmap_clear_modify(m->phys_addr);
break;
@@ -744,7 +744,7 @@ vm_fault_return_t vm_fault_page(first_object, first_offset,
vm_page_zero_fill(m);
vm_stat_sample(SAMPLED_PC_VM_ZFILL_FAULTS);
vm_stat.zero_fill_count++;
- current_task()->zero_fills;
+ current_task()->zero_fills++;
vm_object_lock(object);
pmap_clear_modify(m->phys_addr);
break;
@@ -860,7 +860,7 @@ vm_fault_return_t vm_fault_page(first_object, first_offset,
vm_stat.cow_faults++;
vm_stat_sample(SAMPLED_PC_VM_COW_FAULTS);
- current_task()->cow_faults;
+ current_task()->cow_faults++;
object = first_object;
offset = first_offset;