diff options
author | David Höppner <0xffea@gmail.com> | 2013-01-04 22:43:53 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-13 20:13:32 +0100 |
commit | beda83efaa45fb04f142034f61eb1ae9fe872c59 (patch) | |
tree | b5e4a7a4b18e42feb24d46167028f8cf3130b557 /kern/task.h | |
parent | 392239d8c9979ac95c122b77d5d1e012f216d2ec (diff) | |
download | gnumach-beda83efaa45fb04f142034f61eb1ae9fe872c59.tar.gz gnumach-beda83efaa45fb04f142034f61eb1ae9fe872c59.tar.bz2 gnumach-beda83efaa45fb04f142034f61eb1ae9fe872c59.zip |
Add statistics for task_events_info
* ipc/ipc_mqueue.c (ipc_mqueue_send, ipc_mqueue_receive): Increment
counters for message sent and received.
* kern/ipc_kobject.c (ipc_kobject_server): Increment sent and received
counters for the kernel task.
* kern/task.c (task_create): Zero statistics.
* kern/task.c (task_info): Add task_events_info call.
* kern/task.h: Add statistics.
* vm/vm_fault.c (vm_fault_page): Increment zero_fills, pageins,
reactivations and cow_faults counters.
* vm/vm_fault.c (vm_fault_wire_fast): Increment faults counters.
* vm/vm_pageout.c (vm_pageout_scan): Increment reactivations counter.
Diffstat (limited to 'kern/task.h')
-rw-r--r-- | kern/task.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kern/task.h b/kern/task.h index c4251581..9bfea571 100644 --- a/kern/task.h +++ b/kern/task.h @@ -102,6 +102,15 @@ struct task { /* Hardware specific data. */ machine_task_t machine; + + /* Statistics */ + natural_t faults; /* page faults counter */ + natural_t zero_fills; /* zero fill pages counter */ + natural_t reactivations; /* reactivated pages counter */ + natural_t pageins; /* actual pageins couter */ + natural_t cow_faults; /* copy-on-write faults counter */ + natural_t messages_sent; /* messages sent counter */ + natural_t messages_received; /* messages received counter */ }; #define task_lock(task) simple_lock(&(task)->lock) |