From 26dbcbe01367a8d4b0ca89c8590758aa72ee045c Mon Sep 17 00:00:00 2001 From: Mohamad Ayyash Date: Tue, 8 Apr 2014 15:24:11 -0700 Subject: [PATCH] atrace: Add f2fs sync and ext4 write tracepoints. Change-Id: I76fa32f7d80aaeafc26494d9018b7a004e7dc3d2 --- cmds/atrace/atrace.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp index 34dc9fef8..099c3df47 100644 --- a/cmds/atrace/atrace.cpp +++ b/cmds/atrace/atrace.cpp @@ -40,7 +40,7 @@ using namespace android; #define NELEM(x) ((int) (sizeof(x) / sizeof((x)[0]))) -enum { MAX_SYS_FILES = 8 }; +enum { MAX_SYS_FILES = 10 }; const char* k_traceTagsProperty = "debug.atrace.tags.enableflags"; const char* k_traceAppCmdlineProperty = "debug.atrace.app_cmdlines"; @@ -99,6 +99,12 @@ static const TracingCategory k_categories[] = { { REQ, "/sys/kernel/debug/tracing/events/power/cpu_idle/enable" }, } }, { "disk", "Disk I/O", 0, { + { REQ, "/sys/kernel/debug/tracing/events/f2fs/f2fs_sync_file_enter/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/f2fs/f2fs_sync_file_exit/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/f2fs/f2fs_write_begin/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/f2fs/f2fs_write_end/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/ext4/ext4_da_write_begin/enable" }, + { REQ, "/sys/kernel/debug/tracing/events/ext4/ext4_da_write_end/enable" }, { REQ, "/sys/kernel/debug/tracing/events/ext4/ext4_sync_file_enter/enable" }, { REQ, "/sys/kernel/debug/tracing/events/ext4/ext4_sync_file_exit/enable" }, { REQ, "/sys/kernel/debug/tracing/events/block/block_rq_issue/enable" },