atrace: add memory reclaim tracing

Add "memreclaim" to trace direct reclaim, shrink slab cycles, and
kswapd waking up and sleeping.

Change-Id: I4cfb313820a3a9aa5a9d07a39c42db41c24304a6
This commit is contained in:
Colin Cross 2014-08-18 15:22:13 -07:00
parent f440d398fa
commit 580407f107

View File

@ -129,6 +129,12 @@ static const TracingCategory k_categories[] = {
{ "workq", "Kernel Workqueues", 0, { { "workq", "Kernel Workqueues", 0, {
{ REQ, "/sys/kernel/debug/tracing/events/workqueue/enable" }, { REQ, "/sys/kernel/debug/tracing/events/workqueue/enable" },
} }, } },
{ "memreclaim", "Kernel Memory Reclaim", 0, {
{ REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_begin/enable" },
{ REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_direct_reclaim_end/enable" },
{ REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_wake/enable" },
{ REQ, "/sys/kernel/debug/tracing/events/vmscan/mm_vmscan_kswapd_sleep/enable" },
} },
}; };
/* Command line options */ /* Command line options */